using FreeSql.DataAnnotations; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CapMachine.Model.ModelMapConfig { /// /// ModelMap的Columns /// [Table(Name = "Columns")] public class Columns { /// /// 主键 /// [Column(IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 名称 /// [Column(Name = "Name", IsNullable = true, StringLength = 50)] public string? Name { get; set; } /// /// MapType /// [Column(Name = "MapType", IsNullable = true, StringLength = 50)] public string? MapType { get; set; } /// /// 使用字符串属性时 /// 字符串长度 /// [Column(Name = "StringLength")] public short StringLength { get; set; } /// /// 是否可空 /// 可空 /// [Column(Name = "IsNullable")] public bool IsNullable { get; set; } /// /// 使用decimal 属性时 /// 小数点 /// [Column(Name = "Precision")] public short Precision { get; set; } /// /// 使用decimal 属性时 /// 长度 /// [Column(Name = "Scale")] public short Scale { get; set; } ///// ///// 使用时间属性时 ///// 时间的特点 ///// //[Column(Name = "ServerTime", IsNullable = true, StringLength = 50)] //public string ServerTime { get; set; } /// /// 是否主键 /// [Column(Name = "IsPrimary")] public bool IsPrimary { get; set; } /// /// 是否自增 /// [Column(Name = "IsIdentity")] public bool IsIdentity { get; set; } } }