/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此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 VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Table("Sys_Dictionary")]
[Entity(TableCnName = "字典数据",DetailTable = new Type[] { typeof(Sys_DictionaryList)},DetailTableCnName = "字典明细")]
public class Sys_Dictionary:BaseEntity
{
///
///字典ID
///
[Key]
[Display(Name ="字典ID")]
[Column(TypeName="int")]
[Required(AllowEmptyStrings=false)]
public int Dic_ID { get; set; }
///
///字典编号
///
[Display(Name ="字典编号")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string DicNo { get; set; }
///
///字典名称
///
[Display(Name ="字典名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string DicName { get; set; }
///
///父级ID
///
[Display(Name ="父级ID")]
[Column(TypeName="int")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public int ParentId { get; set; }
///
///配置项
///
[Display(Name ="配置项")]
[MaxLength(10000)]
[Column(TypeName="nvarchar(10000)")]
[Editable(true)]
public string Config { get; set; }
///
///sql语句
///
[Display(Name ="sql语句")]
[MaxLength(10000)]
[Column(TypeName="nvarchar(10000)")]
[Editable(true)]
public string DbSql { get; set; }
///
///DBServer
///
[Display(Name ="DBServer")]
[MaxLength(10000)]
[Column(TypeName="nvarchar(10000)")]
public string DBServer { get; set; }
///
///排序号
///
[Display(Name ="排序号")]
[Column(TypeName="int")]
[Editable(true)]
public int? OrderNo { get; set; }
///
///备注
///
[Display(Name ="备注")]
[MaxLength(2000)]
[Column(TypeName="nvarchar(2000)")]
[Editable(true)]
public string Remark { get; set; }
///
///是否启用
///
[Display(Name ="是否启用")]
[Column(TypeName="tinyint")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public byte Enable { get; set; }
///
///
///
[Display(Name ="CreateID")]
[Column(TypeName = "uniqueidentifier")]
public Guid CreateID { get; set; }
///
///创建人
///
[Display(Name ="创建人")]
[MaxLength(30)]
[Column(TypeName="nvarchar(30)")]
public string Creator { get; set; }
///
///创建时间
///
[Display(Name ="创建时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? CreateDate { get; set; }
///
///
///
[Display(Name ="ModifyID")]
[Column(TypeName = "uniqueidentifier")]
public Guid ModifyID { get; set; }
///
///修改人
///
[Display(Name ="修改人")]
[MaxLength(30)]
[Column(TypeName="nvarchar(30)")]
public string Modifier { get; set; }
///
///修改时间
///
[Display(Name ="修改时间")]
[Column(TypeName="datetime")]
public DateTime? ModifyDate { get; set; }
[Display(Name ="字典明细")]
[ForeignKey("Dic_ID")]
public List Sys_DictionaryList { get; set; }
///
///修改人
///
[Display(Name = "公司代码字段")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string CompanyField { get; set; }
}
}