Files
tnb.server/apihost/Tnb.API.Entry/wwwroot/Template/VengineSqlSugar/EntityDto.cshtml
2024-04-23 10:16:16 +08:00

31 lines
947 B
Plaintext

/////////////////////////////////////////////////////////////////////////////////
// 宁波拓通e智造平台 ToTong Next Builder //
// https://git.tuotong-tech.com/tnb/tnb-server //
/////////////////////////////////////////////////////////////////////////////////
@using Tnb.Core;
@using Tnb.Vengine;
@using Tnb.Vengine.Domain;
@{
AcmenVmodelContext context = Model;
Vmodel vm = context.Vm;
}
using Tnb.Core;
namespace @(context.NsPrefix + "." + vm.areaCode + ".AppService");
/// <summary>
/// @(vm.vmCode)Dto对象
/// </summary>
public record @(vm.vmCode)Dto(@vm.GetPropStr(true, true));
public class @(vm.vmCode)CreateInput : VmEditInput
{
public new @(vm.vmCode)CreateData? data { get; set; }
public override VmEditInput ToEditInput()
{
VmEditInput input = this;
input.data = DObject.FromObject(data);
return input;
}
}