DigitalFactory/Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/Dto.cs.vm

25 lines
708 B
Plaintext

namespace @Model.NameSpace;
/// <summary>
/// @(@Model.BusName)输出参数
/// </summary>
public class @(@Model.ClassName)Dto
{
@foreach (var column in Model.TableField){
if(@column.EffectType == "fk" && @column.FkEntityName != "" && @column.FkColumnName != ""){
@:/// <summary>
@:/// @column.ColumnComment
@:/// </summary>
@:public @(@column.FkColumnNetType) @(@column.PropertyName)@(@column.FkColumnName) { get; set; }
@:
}
}
@foreach (var column in Model.TableField){
@:/// <summary>
@:/// @column.ColumnComment
@:/// </summary>
@:public @column.NetType @column.PropertyName { get; set; }
@:
}
}