using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Estsh.Core.CodeGenerate { public class FieldInfo { /// /// 初始化 /// public FieldInfo() { FieldName = string.Empty; Description = string.Empty; } /// /// 字段名称 /// public string FieldName { get; set; } /// /// 描述 /// public string Description { get; set; } /// /// 系统数据类型,如 int /// public string DataType { get; set; } /// /// 数据库里面存放的类型。 /// public string FieldType { get; set; } /// /// 代表小数位精度。 /// public long? FieldScale { get; set; } /// /// 数据精度,仅数字类型有效,总共多少位数字(10进制)。 /// 在MySql里面代表了字段长度 /// public long? FieldPrecision { get; set; } /// /// /// public long? FieldMaxLength { get; set; } /// /// 可空 /// public bool IsNullable { get; set; } /// /// 是否为主键字段 /// public bool IsIdentity { get; set; } /// /// 【未用上】该字段是否自增 /// public bool Increment { get; set; } /// /// 默认值 /// public string FieldDefaultValue { get; set; } } }