vengine初步实现增删改查
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
// 宁波拓通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 Microsoft.AspNetCore.Mvc;
|
||||
using Tnb.Core;
|
||||
using Tnb.Vengine.AppService;
|
||||
using Tnb.Vengine.DataAccess;
|
||||
using Tnb.Vengine.Domain;
|
||||
using @(context.NsPrefix + "." + vm.areaCode + ".Domain");
|
||||
|
||||
namespace @(context.NsPrefix + "." + vm.areaCode + ".AppService");
|
||||
|
||||
/// <summary>
|
||||
/// 模型 @vm.vmName 应用服务类
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = Consts.ApiGroupCode)]
|
||||
public class @(vm.vmCode)AppService : VengineAppService<@(vm.vmCode)>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public @(vm.vmCode)AppService(IDataAccess da) : base(da)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user