|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
-
- using System;
-
- namespace DataSendApi.Program.CustomizeAttribute
- {
- /// <summary>
- /// 自定义特性
- /// </summary>
- public class CustomizeFieldAttribute : Attribute
- {
- /// <summary>
- /// 中文列名
- /// </summary>
- public string ChineseColumnName { get; set; }
- /// <summary>
- /// 数据库列明
- /// </summary>
- public string DatabaseColumnName { get; set; }
- /// <summary>
- /// 列类型
- /// </summary>
- public string ColumnType { get; set; }
- /// <summary>
- /// 列长度
- /// </summary>
- public int ColumnLength { get; set; }
- /// <summary>
- /// 列格式
- /// </summary>
- public string ColumnFormat { get; set; }
- /// <summary>
- /// 是否数据库列
- /// </summary>
- public bool IsDatabase { get; set; }
- /// <summary>
- /// 是否Api
- /// </summary>
- public bool IsApi { get; set; }
- /// <summary>
- /// 是否主键
- /// </summary>
- public bool IsPrimaryKey { get; set; }
- /// <summary>
- /// 是否Excel验证列
- /// </summary>
- public bool IsExcelVerify { get; set; }
- /// <summary>
- /// 是否连接编码
- /// </summary>
- public bool IsJson { get; set; }
- /// <summary>
- /// 连接的编码类别
- /// </summary>
- public string JsonName { get; set; }
- /// <summary>
- /// 是否为Excel
- /// </summary>
- public bool IsExcel { get; set; }
- /// <summary>
- /// 是否必填
- /// </summary>
- public bool IsNull { get; set; }
- /// <summary>
- /// 特殊验证
- /// <para>值:1,使用||进行分割,验证字典值</para>
- /// <para>值:2,推送与导入时,查询ods_dyfzqkjcsj表总数存入数据库</para>
- /// </summary>
- public string TsVerify { get; set; } = string.Empty;
-
- }
- }
|