using JNPF.DependencyInjection; namespace JNPF.VisualDev.Engine.Model.CodeGen; /// /// 代码生成表关系模型. /// [SuppressSniffer] public class CodeGenTableRelationsModel { /// /// 功能名称. /// public string ClassName { get; set; } /// /// 功能名称(首字母小写). /// public string LowerClassName => string.IsNullOrWhiteSpace(ClassName) ? null : ClassName.Substring(0, 1).ToLower() + ClassName[1..]; /// /// 表名. /// public string TableName { get; set; } /// /// 关联主表. /// public string RelationTable { get; set; } /// /// 原始表名称. /// public string OriginalTableName { get; set; } /// /// 控件绑定模型. /// public string ControlModel { get; set; } /// /// 表名(首字母小写). /// public string LowerTableName => string.IsNullOrWhiteSpace(TableName) ? null : TableName.Substring(0, 1).ToLower() + TableName[1..]; /// /// 主键. /// public string PrimaryKey { get; set; } /// /// 主键(首字母小写). /// public string LowerPrimaryKey => string.IsNullOrWhiteSpace(PrimaryKey) ? null : PrimaryKey.Substring(0, 1).ToLower() + PrimaryKey[1..]; /// /// 表描述. /// public string TableComment { get; set; } /// /// 控件内表描述. /// public string ControlTableComment { get; set; } /// /// 外键字段. /// public string TableField { get; set; } /// /// 原始外键字段. /// public string OriginalTableField { get; set; } /// /// 关联主键. /// public string RelationField { get; set; } /// /// 原始关联主键. /// public string OriginalRelationField { get; set; } /// /// 关联主键. /// public string LowerRelationField => string.IsNullOrWhiteSpace(RelationField) ? null : RelationField.Substring(0, 1).ToLower() + RelationField[1..]; /// /// 子表控件配置. /// public List ChilderColumnConfigList { get; set; } /// /// 子表有限字段长度. /// public int ChilderColumnConfigListCount { get; set; } /// /// 编号. /// public int TableNo { get; set; } /// /// 是否查询条件. /// public bool IsQueryWhether { get; set; } /// /// 是否显示字段. /// public bool IsShowField { get; set; } /// /// 是否唯一. /// public bool IsUnique { get; set; } /// /// 是否数据转换. /// public bool IsConversion { get; set; } /// /// 是否详情数据转换. /// public bool IsDetailConversion { get; set; } /// /// 是否导入数据. /// public bool IsImportData { get; set; } /// /// 是否系统控件. /// public bool IsSystemControl { get; set; } /// /// 是否更新. /// public bool IsUpdate { get; set; } public bool IsControlParsing { get; set; } /// /// 是否查询条件多选. /// public bool IsSearchMultiple { get; set; } }