/* *代码由框架生成,任何更改都可能导致被代码生成器覆盖 *如果数据库字段发生变化,请在代码生器重新生成此Model */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using VolPro.Entity.SystemModels; namespace VolPro.Entity.DomainModels { [Entity(TableCnName = "物料管理",TableName = "MES_Material",DBServer = "ServiceDbContext")] public partial class MES_Material:ServiceEntity { /// ///物料ID /// [SugarColumn(IsPrimaryKey = true)] [Key] [Display(Name ="物料ID")] [MaxLength(36)] [Column(TypeName="uniqueidentifier")] [Editable(true)] [Required(AllowEmptyStrings=false)] public Guid MaterialID { get; set; } /// ///物料编码 /// [Display(Name ="物料编码")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] [Required(AllowEmptyStrings=false)] public string MaterialCode { get; set; } /// ///物料名称 /// [Display(Name ="物料名称")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] [Required(AllowEmptyStrings=false)] public string MaterialName { get; set; } /// ///物料图片 /// [Display(Name ="物料图片")] [MaxLength(2000)] [Column(TypeName="nvarchar(2000)")] [Editable(true)] public string Img { get; set; } /// ///物料分类 /// [Display(Name ="物料分类")] [MaxLength(36)] [Column(TypeName="uniqueidentifier")] [Editable(true)] public Guid? CatalogID { get; set; } /// ///物料类型 /// [Display(Name ="物料类型")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string MaterialType { get; set; } /// ///规格型号 /// [Display(Name ="规格型号")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Specification { get; set; } /// ///单位 /// [Display(Name ="单位")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Unit { get; set; } /// ///单价 /// [Display(Name ="单价")] [DisplayFormat(DataFormatString="10,2")] [Column(TypeName="decimal")] [Editable(true)] public decimal? Price { get; set; } /// ///备注信息 /// [Display(Name ="备注信息")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Remarks { get; set; } /// ///创建人ID /// [Display(Name ="创建人ID")] [Column(TypeName="int")] [Editable(true)] public int? CreateID { get; set; } /// ///创建人 /// [Display(Name ="创建人")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Creator { get; set; } /// ///创建时间 /// [Display(Name ="创建时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? CreateDate { get; set; } /// ///修改人ID /// [Display(Name ="修改人ID")] [Column(TypeName="int")] [Editable(true)] public int? ModifyID { get; set; } /// ///修改人 /// [Display(Name ="修改人")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Modifier { get; set; } /// ///修改时间 /// [Display(Name ="修改时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? ModifyDate { get; set; } } }