使用sqlsugar内置工作单元

This commit is contained in:
chenchun
2023-01-02 13:59:05 +08:00
parent 0e78857645
commit ea35871aba
16 changed files with 65 additions and 58 deletions

View File

@@ -1,15 +0,0 @@
//using SqlSugar;
//using Yi.Framework.Common.Models;
//using Yi.Framework.Model.Models;
//namespace Yi.Framework.Repository
//{
// public class DataContext<T> : SimpleClient<T> where T : class, IBaseModelEntity, new()
// {
// public DataContext(ISqlSugarClient context) : base(context)
// {
// }
// }
//}
//简化已被弃用

View File

@@ -0,0 +1,11 @@
using SqlSugar;
namespace Yi.Framework.Repository
{
/// <summary>
/// Sqlsugar自带工作单元何乐而不为呢
/// </summary>
public class UnitOfWork: SugarUnitOfWork
{
}
}