ListDto.tt 922 B

123456789101112131415161718192021222324252627282930313233343536
  1. <#@ template language="C#" #>
  2. <#@ assembly name="System.Core" #>
  3. <#@ import namespace="System.Linq" #>
  4. <#@ import namespace="System.Text" #>
  5. <#@ import namespace="System.Collections.Generic" #>
  6. using Abp.AutoMapper;
  7. using VberZero.AppService.Base.Dto;
  8. namespace <#=Model.ApplicationNamespace#>.Dto
  9. {
  10. <#
  11. if(!string.IsNullOrEmpty(Model.HtmlPageTitle)){
  12. #>
  13. /// <summary>
  14. /// <#=Model.HtmlPageTitle#>
  15. /// </summary>
  16. <# }
  17. #> [AutoMapTo(typeof(<#=Model.ClassName#>)),AutoMapFrom(typeof(<#=Model.ClassName#>))]
  18. public class <#=Model.FileName#>Dto: VzEntityDto<<#=Model.IdType#>>
  19. {
  20. <#
  21. foreach (var item in Model.Columns)
  22. {
  23. if(!item.IsGenreated) continue;
  24. if(!string.IsNullOrEmpty(item.Comment)){
  25. #> /// <summary>
  26. /// <#=item.Comment#>
  27. /// </summary>
  28. <# }
  29. #> public <#=item.AttrType#> <#=item.ColumnName#> { get; set; }
  30. <#
  31. }
  32. #>
  33. }
  34. }