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

17 lines
389 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-24 16:01:09 +08:00
using Yi.Framework.Model.Models;
2022-04-02 17:44:50 +08:00
namespace Yi.Framework.Repository
{
2022-04-24 16:01:09 +08:00
public class DataContext<T> : SimpleClient<T> where T : class, BaseModelEntity, new()
2022-04-02 17:44:50 +08:00
{
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
}
}