ExcelMappingAttrItem.cs 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Reflection;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace XYY.Core.Standard.ExcelHelper.MSExcelHelper
  9. {
  10. public class ExcelMappingAttrItem
  11. {
  12. /// <summary>
  13. /// 列名
  14. /// </summary>
  15. public string ColumnName
  16. {
  17. get; set;
  18. }
  19. public string AtrrFormat
  20. {
  21. get; set;
  22. }
  23. public ExcelMappingAttrItem Name(string name)
  24. {
  25. this.ColumnName = name;
  26. return this;
  27. }
  28. public ExcelMappingAttrItem Format(string format)
  29. {
  30. this.AtrrFormat = format;
  31. return this;
  32. }
  33. /// <summary>
  34. /// 列名表达式
  35. /// </summary>
  36. public LambdaExpression LambdaExpression
  37. {
  38. get; set;
  39. }
  40. }
  41. }