using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace YBEE.EQM.Core; /// /// 机构监测结果 /// [Comment("机构监测结果")] public class ExamOrgResult : DEntityBase { /// /// 监测计划ID /// [Comment("监测计划ID")] [Required] public int ExamPlanId { get; set; } /// /// 监测结果发布内容ID /// [Comment("监测结果发布内容ID")] [Required] public int ExamDataPublishId { get; set; } /// /// 监测机构ID /// [Comment("监测机构ID")] [Required] public int ExamOrgId { get; set; } /// /// 机构ID /// [Comment("机构ID")] [Required] public int SysOrgId { get; set; } /// /// 文件名 /// [Comment("文件名")] [Required, StringLength(200)] public string FileName { get; set; } /// /// 文件路径 /// [Comment("文件路径")] [Required, StringLength(300)] public string FilePath { get; set; } /// /// 扩展名 /// [Comment("扩展名")] [Required, StringLength(50)] public string FileExtName { get; set; } /// /// 文件大小 /// [Comment("文件大小")] [Required] public long FileSize { get; set; } = 0; /// /// 一对一引用(监测机构) /// public virtual ExamOrg ExamOrg { get; set; } /// /// 一对一引用(监测结果发布内容) /// public virtual ExamDataPublish ExamDataPublish { get; set; } }