shgx_tz_mom/ZR.Repository/Repositories/GendemoRepository.cs

32 lines
720 B
C#
Raw Normal View History

2021-09-27 08:06:09 +08:00
using System;
using Infrastructure.Attribute;
using ZR.Repository.System;
using ZR.Model.Models;
2021-10-29 13:23:22 +08:00
using SqlSugar;
using SqlSugar.IOC;
2021-09-27 08:06:09 +08:00
namespace ZR.Repository
{
/// <summary>
/// 代码生成演示仓储接口的实现
///
/// @author zr
/// @date 2021-09-27
2021-09-27 08:06:09 +08:00
/// </summary>
[AppService(ServiceLifetime = LifeTime.Transient)]
public class GendemoRepository : BaseRepository<Gendemo>
{
2021-10-29 13:23:22 +08:00
private readonly ISqlSugarClient db;
public GendemoRepository()
2021-10-11 18:05:01 +08:00
{
2021-10-29 13:23:22 +08:00
db = DbScoped.SugarScope.GetConnection(1);
2021-10-11 18:05:01 +08:00
}
2021-09-27 08:06:09 +08:00
#region
2021-10-29 13:23:22 +08:00
public void Test()
{
var date = db.GetDate();
}
2021-09-27 08:06:09 +08:00
#endregion
}
}