46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否为主键
|
|
/// </summary>
|
|
public bool IsKey { get; set; }
|
|
/// <summary>
|
|
/// 是否为自增字段
|
|
/// </summary>
|
|
public bool IsAutoGrow { get; set; }
|
|
/// <summary>
|
|
/// 字段名称
|
|
/// </summary>
|
|
public string FieldName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字段描述
|
|
/// </summary>
|
|
public string Descript { get; set; }
|
|
}
|
|
}
|