using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIMSExtension { [AttributeUsage(AttributeTargets.Property,Inherited =true)] public class DataFieldAttribute:Attribute { public DataFieldAttribute() { } public DataFieldAttribute(string name) { this.FieldName = name; } public DataFieldAttribute(string name,string remark) { this.FieldName = name; this.Descript = remark; } /// /// 是否为主键 /// public bool IsKey { get; set; } /// /// 是否为自增字段 /// public bool IsAutoGrow { get; set; } /// /// 字段名称 /// public string FieldName { get; set; } /// /// 字段描述 /// public string Descript { get; set; } } }