智慧大脑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

72 regels
2.0 KiB

  1. using System;
  2. namespace DataSendApi.Program.CustomizeAttribute
  3. {
  4. /// <summary>
  5. /// 自定义特性
  6. /// </summary>
  7. public class CustomizeFieldAttribute : Attribute
  8. {
  9. /// <summary>
  10. /// 中文列名
  11. /// </summary>
  12. public string ChineseColumnName { get; set; }
  13. /// <summary>
  14. /// 数据库列明
  15. /// </summary>
  16. public string DatabaseColumnName { get; set; }
  17. /// <summary>
  18. /// 列类型
  19. /// </summary>
  20. public string ColumnType { get; set; }
  21. /// <summary>
  22. /// 列长度
  23. /// </summary>
  24. public int ColumnLength { get; set; }
  25. /// <summary>
  26. /// 列格式
  27. /// </summary>
  28. public string ColumnFormat { get; set; }
  29. /// <summary>
  30. /// 是否数据库列
  31. /// </summary>
  32. public bool IsDatabase { get; set; }
  33. /// <summary>
  34. /// 是否Api
  35. /// </summary>
  36. public bool IsApi { get; set; }
  37. /// <summary>
  38. /// 是否主键
  39. /// </summary>
  40. public bool IsPrimaryKey { get; set; }
  41. /// <summary>
  42. /// 是否Excel验证列
  43. /// </summary>
  44. public bool IsExcelVerify { get; set; }
  45. /// <summary>
  46. /// 是否连接编码
  47. /// </summary>
  48. public bool IsJson { get; set; }
  49. /// <summary>
  50. /// 连接的编码类别
  51. /// </summary>
  52. public string JsonName { get; set; }
  53. /// <summary>
  54. /// 是否为Excel
  55. /// </summary>
  56. public bool IsExcel { get; set; }
  57. /// <summary>
  58. /// 是否必填
  59. /// </summary>
  60. public bool IsNull { get; set; }
  61. /// <summary>
  62. /// 特殊验证
  63. /// <para>值:1,使用||进行分割,验证字典值</para>
  64. /// <para>值:2,推送与导入时,查询ods_dyfzqkjcsj表总数存入数据库</para>
  65. /// </summary>
  66. public string TsVerify { get; set; } = string.Empty;
  67. }
  68. }