使用sqlsugar内置工作单元
This commit is contained in:
@@ -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)
|
||||
// {
|
||||
// }
|
||||
|
||||
// }
|
||||
//}
|
||||
//简化已被弃用
|
||||
11
Yi.Framework.Net6/Yi.Framework.Repository/UnitOfWork.cs
Normal file
11
Yi.Framework.Net6/Yi.Framework.Repository/UnitOfWork.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Yi.Framework.Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// Sqlsugar自带工作单元,何乐而不为呢?
|
||||
/// </summary>
|
||||
public class UnitOfWork: SugarUnitOfWork
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user