using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 抽样方案 /// [Comment("抽样方案")] public partial class ExamSample : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } /// /// 监测计划ID /// [Comment("监测计划ID")] [Required] public int ExamPlanId { get; set; } /// /// 序,同一监测从1开始计数 /// [Description("序,同一监测从1开始计数")] [Required] public int Sequence { get; set; } = 1; /// /// 名称 /// [Comment("名称")] [Required, StringLength(100)] public string Name { get; set; } /// /// 全称 /// [Comment("全称")] [Required, StringLength(200)] public string FullName { get; set; } /// /// 简称 /// [Required, StringLength(50)] public string ShortName { get; set; } /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } = ""; /// /// 是否选中使用的方案 /// [Comment("是否选中使用的方案")] public bool IsSelected { get; set; } = false; /// /// 选中使用时间 /// [Comment("选中使用时间")] public DateTime? SelectedTime { get; set; } /// /// 选中使用操作用户ID /// [Comment("选中使用操作用户ID")] public int? SelectedSysUserId { get; set; } /// /// 一对一引用(监测信息) /// public virtual ExamPlan ExamPlan { get; set; } /// /// 一对一引用(选中使用操作用户) /// public virtual SysUser SelectedSysUser { get; set; } }