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