修改代码生成测试代码

This commit is contained in:
不做码农
2021-11-24 14:30:21 +08:00
parent fdd7fea4c6
commit e4487c9f56
7 changed files with 132 additions and 118 deletions

View File

@@ -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
}
}