修改代码生成测试代码
This commit is contained in:
@@ -2,8 +2,6 @@ using System;
|
||||
using Infrastructure.Attribute;
|
||||
using ZR.Repository.System;
|
||||
using ZR.Model.Models;
|
||||
using SqlSugar;
|
||||
using SqlSugar.IOC;
|
||||
|
||||
namespace ZR.Repository
|
||||
{
|
||||
@@ -11,22 +9,12 @@ namespace ZR.Repository
|
||||
/// 代码生成演示仓储接口的实现
|
||||
///
|
||||
/// @author zr
|
||||
/// @date 2021-09-27
|
||||
/// @date 2021-11-24
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
public class GendemoRepository : BaseRepository<Gendemo>
|
||||
{
|
||||
private readonly ISqlSugarClient db;
|
||||
public GendemoRepository()
|
||||
{
|
||||
db = DbScoped.SugarScope.GetConnection(1);
|
||||
}
|
||||
|
||||
#region 业务逻辑代码
|
||||
public void Test()
|
||||
{
|
||||
var date = db.GetDate();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user