Files
Yi.Admin/Yi.Framework.Net6/Yi.Framework.Repository/DataContext.cs

16 lines
339 B
C#
Raw Normal View History

2022-04-02 17:44:50 +08:00
using SqlSugar;
2022-04-06 18:05:00 +08:00
using Yi.Framework.Common.Models;
2022-04-02 17:44:50 +08:00
namespace Yi.Framework.Repository
{
public class DataContext<T> : SimpleClient<T> where T : class, new()
{
2022-04-06 22:22:45 +08:00
public DataContext(ISqlSugarClient context) : base(context)
2022-04-02 17:44:50 +08:00
{
2022-04-06 22:22:45 +08:00
Db =base.Context;
2022-04-02 17:44:50 +08:00
}
2022-04-06 22:22:45 +08:00
public ISqlSugarClient Db;
2022-04-02 17:44:50 +08:00
}
}