You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
632 B

using ReZero.DependencyInjection;
using ReZero.SuperAPI;
using SqlSugar;
namespace medical.insu.transfomer
{
/// <summary>
/// 动态接口+工作单元
/// </summary>
[Api(200100, GroupName = "分组3")]
public class MyApiWithUnitOfWorkController
{
//属性注入
[DI]
public ISqlSugarClient? db { get; set; }
//工作单元,可以用自带的也可以重新写
[UnitOfWork]
[ApiMethod("我是QueryTest方法")]
public bool QueryTest()
{
db!.Ado.ExecuteCommand("select 1 as id");
return true;
}
}
}