namespace Admin.NET.Core; /// /// 代码生成字段配置表 /// [SugarTable(null, "代码生成字段配置表")] [SystemTable] public class SysCodeGenConfig : EntityBase { /// /// 代码生成主表Id /// [SugarColumn(ColumnDescription = "主表Id")] public long CodeGenId { get; set; } /// /// 数据库字段名 /// [SugarColumn(ColumnDescription = "字段名称", Length = 128)] [Required, MaxLength(128)] public virtual string ColumnName { get; set; } /// /// 字段描述 /// [SugarColumn(ColumnDescription = "字段描述", Length = 128)] [MaxLength(128)] public string? ColumnComment { get; set; } /// /// .NET数据类型 /// [SugarColumn(ColumnDescription = "NET数据类型", Length = 64)] [MaxLength(64)] public string? NetType { get; set; } /// /// 作用类型(字典) /// [SugarColumn(ColumnDescription = "作用类型", Length = 64)] [MaxLength(64)] public string? EffectType { get; set; } /// /// 外键实体名称 /// [SugarColumn(ColumnDescription = "外键实体名称", Length = 64)] [MaxLength(64)] public string? FkEntityName { get; set; } /// /// 外键表名称 /// [SugarColumn(ColumnDescription = "外键表名称", Length = 128)] [MaxLength(128)] public string? FkTableName { get; set; } /// /// 外键显示字段 /// [SugarColumn(ColumnDescription = "外键显示字段", Length = 64)] [MaxLength(64)] public string? FkColumnName { get; set; } /// /// 外键显示字段.NET类型 /// [SugarColumn(ColumnDescription = "外键显示字段.NET类型", Length = 64)] [MaxLength(64)] public string? FkColumnNetType { get; set; } /// /// 字典编码 /// [SugarColumn(ColumnDescription = "字典编码", Length = 64)] [MaxLength(64)] public string? DictTypeCode { get; set; } /// /// 列表是否缩进(字典) /// [SugarColumn(ColumnDescription = "列表是否缩进", Length = 8)] [MaxLength(8)] public string? WhetherRetract { get; set; } /// /// 是否必填(字典) /// [SugarColumn(ColumnDescription = "是否必填", Length = 8)] [MaxLength(8)] public string? WhetherRequired { get; set; } /// /// 是否是查询条件 /// [SugarColumn(ColumnDescription = "是否是查询条件", Length = 8)] [MaxLength(8)] public string? QueryWhether { get; set; } /// /// 查询方式 /// [SugarColumn(ColumnDescription = "查询方式", Length = 16)] [MaxLength(16)] public string? QueryType { get; set; } /// /// 列表显示 /// [SugarColumn(ColumnDescription = "列表显示", Length = 8)] [MaxLength(8)] public string? WhetherTable { get; set; } /// /// 增改 /// [SugarColumn(ColumnDescription = "增改", Length = 8)] [MaxLength(8)] public string? WhetherAddUpdate { get; set; } /// /// 主键 /// [SugarColumn(ColumnDescription = "主键", Length = 8)] [MaxLength(8)] public string? ColumnKey { get; set; } /// /// 数据库中类型(物理类型) /// [SugarColumn(ColumnDescription = "数据库中类型", Length = 64)] [MaxLength(64)] public string? DataType { get; set; } /// /// 是否通用字段 /// [SugarColumn(ColumnDescription = "是否通用字段", Length = 8)] [MaxLength(8)] public string? WhetherCommon { get; set; } /// /// 显示文本字段 /// [SugarColumn(ColumnDescription = "显示文本字段", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? DisplayColumn { get; set; } /// /// 选中值字段 /// [SugarColumn(ColumnDescription = "选中值字段", Length = 128)] [MaxLength(128)] public string? ValueColumn { get; set; } /// /// 父级字段 /// [SugarColumn(ColumnDescription = "父级字段", Length = 128)] [MaxLength(128)] public string? PidColumn { get; set; } }