DataColumnNameAttribute.cs 941 B

1234567891011121314151617181920212223242526272829
  1. /*********************************************************************************
  2. *Author: OnClick
  3. *Version: 0.0.1
  4. *UnityVersion: 2018.3.11f1
  5. *Date: 2019-09-08
  6. *Description: IFramework
  7. *History: 2018.11--
  8. *********************************************************************************/
  9. using System;
  10. namespace IFramework.Serialization.DataTable
  11. {
  12. /// <summary>
  13. /// 设置数据表标题
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  16. public class DataColumnNameAttribute : Attribute
  17. {
  18. /// <summary>
  19. /// ctor
  20. /// </summary>
  21. /// <param name="name">名称</param>
  22. public DataColumnNameAttribute(string name) { this.name = name; }
  23. /// <summary>
  24. /// 名称
  25. /// </summary>
  26. public string name { get; private set; }
  27. }
  28. }