using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace FMSAdmin.Entities { public partial class CmFile { public CmFile() { CmAnnouncement = new HashSet(); CmGuideline = new HashSet(); FmsAccidentCmFile1 = new HashSet(); FmsAccidentCmFile2 = new HashSet(); FmsAccidentCmFile3 = new HashSet(); FmsAccidentCmFile4 = new HashSet(); FmsConstructionCmFile = new HashSet(); FmsConstructionCmFile1 = new HashSet(); FmsConstructionCmFileNavigation = new HashSet(); FmsDrawingHistory = new HashSet(); FmsManualHistory = new HashSet(); FmsMaterial = new HashSet(); FmsMaterialPurchaseOrder = new HashSet(); FmsReport = new HashSet(); FmsWorkResultFile = new HashSet(); //FmsContract = new HashSet(); Sites = new HashSet(); Equipments = new HashSet(); FmsEquipmentHistory = new HashSet(); BemsReportHistory = new HashSet(); CmRentalStatus = new HashSet(); FmsWorkRequest = new HashSet(); MonthlyRentalStatus = new HashSet(); OrganizationChartStatus = new HashSet(); MonthlyLayoutStatus = new HashSet(); ParkingManagement = new HashSet(); RentalManagement = new HashSet(); MonthlyPriorityWork = new HashSet(); ImprovementReport = new HashSet(); NextMonthPriorityWork = new HashSet(); Cost = new HashSet(); SurroundingStatus = new HashSet(); FmsDailyReport = new HashSet(); CmSurvey = new HashSet(); } [Key] public int SiteId { get; set; } [Key] public int FileId { get; set; } public int FileCategoryId { get; set; } [StringLength(256)] public string Name { get; set; } public int? FileSize { get; set; } [Column(TypeName = "datetime")] public DateTime? CreatedDate { get; set; } [StringLength(128)] public string ContentType { get; set; } [NotMapped] public string Url { get; set; } [NotMapped] public string Path { get; set; } [NotMapped] public bool IsUpload { get; set; } [NotMapped] public bool IsDelete { get; set; } [ForeignKey("FileCategoryId")] public virtual CmFileCategory FileCategory { get; set; } [ForeignKey("SiteId")] public virtual CmSite Site { get; set; } [InverseProperty("CmFile")] public virtual CmFacilityFile CmFacilityFile { get; set; } [InverseProperty("CmFile")] public virtual ICollection BemsReportHistory { get; set; } [InverseProperty("CmFile")] public virtual ICollection CmAnnouncement { get; set; } [InverseProperty("CmFile")] public virtual ICollection CmGuideline { get; set; } [InverseProperty(nameof(FmsAccident.CmFile1))] public virtual ICollection FmsAccidentCmFile1 { get; set; } [InverseProperty(nameof(FmsAccident.CmFile2))] public virtual ICollection FmsAccidentCmFile2 { get; set; } [InverseProperty(nameof(FmsAccident.CmFile3))] public virtual ICollection FmsAccidentCmFile3 { get; set; } [InverseProperty(nameof(FmsAccident.CmFile4))] public virtual ICollection FmsAccidentCmFile4 { get; set; } [InverseProperty(nameof(FmsConstruction.CmFile))] public virtual ICollection FmsConstructionCmFile { get; set; } [InverseProperty(nameof(FmsConstruction.CmFile1))] public virtual ICollection FmsConstructionCmFile1 { get; set; } [InverseProperty(nameof(FmsConstruction.CmFileNavigation))] public virtual ICollection FmsConstructionCmFileNavigation { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsDrawingHistory { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsManualHistory { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsMaterial { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsMaterialPurchaseOrder { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsReport { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsWorkResultFile { get; set; } [InverseProperty(nameof(CmSite.ImageFile))] public virtual ICollection Sites { get; set; } [InverseProperty(nameof(FmsEquipment.ImageFile))] public virtual ICollection Equipments { get; set; } [InverseProperty("CmFile")] public virtual ICollection CmRentalStatus { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsEquipmentHistory { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsWorkRequest { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsWorkSchedule { get; set; } [InverseProperty("OrganizationChartStatus")] public virtual ICollection OrganizationChartStatus { get; set; } [InverseProperty("RentalStatus")] public virtual ICollection MonthlyRentalStatus { get; set; } [InverseProperty("LayoutStatus")] public virtual ICollection MonthlyLayoutStatus { get; set; } [InverseProperty("ParkingManagement")] public virtual ICollection ParkingManagement { get; set; } [InverseProperty("RentalManagement")] public virtual ICollection RentalManagement { get; set; } [InverseProperty("MonthlyPriorityWork")] public virtual ICollection MonthlyPriorityWork { get; set; } [InverseProperty("ImprovementReport")] public virtual ICollection ImprovementReport { get; set; } [InverseProperty("NextMonthPriorityWork")] public virtual ICollection NextMonthPriorityWork { get; set; } [InverseProperty("Cost")] public virtual ICollection Cost { get; set; } [InverseProperty("SurroundingStatus")] public virtual ICollection SurroundingStatus { get; set; } [InverseProperty("CmFile")] public virtual ICollection FmsDailyReport { get; set; } [InverseProperty("CmFile")] public virtual ICollection CmSurvey { get; set; } } }