| 123456789101112131415161718192021222324252627282930313233343536 |
- <#@ template language="C#" #>
- <#@ assembly name="System.Core" #>
- <#@ import namespace="System.Linq" #>
- <#@ import namespace="System.Text" #>
- <#@ import namespace="System.Collections.Generic" #>
- using System;
- using Abp.AutoMapper;
- using Abp.Application.Services.Dto;
- namespace <#=Model.ApplicationNamespace#>.Dto
- {
- <#
- if(!string.IsNullOrEmpty(Model.HtmlPageTitle)){
- #>
- /// <summary>
- /// <#=Model.HtmlPageTitle#>
- /// </summary>
- <# }
- #> [AutoMapTo(typeof(<#=Model.ClassName#>)),AutoMapFrom(typeof(<#=Model.ClassName#>))]
- public class <#=Model.FileName#>Dto: EntityDto<<#=Model.IdType#>>
- {
- <#
- foreach (var item in Model.Columns)
- {
- if(!item.IsGenreated) continue;
- if(!string.IsNullOrEmpty(item.Comment)){
- #> /// <summary>
- /// <#=item.Comment#>
- /// </summary>
- <# }
- #> public <#=item.AttrType#> <#=item.ColumnName#> { get; set; }
- <#
- }
- #>
- }
- }
|