更新仓储层上下文对象与接口命名规范

This commit is contained in:
chenchun
2022-04-12 18:09:13 +08:00
parent e7a27cc474
commit 796bba1abe
9 changed files with 57 additions and 7 deletions

View File

@@ -14,13 +14,14 @@ namespace Yi.Framework.Repository
/// <typeparam name="T"></typeparam>
public class Repository<T> : DataContext<T>, IRepository<T> where T : BaseModelEntity,new()
{
public ISqlSugarClient _Db { get; set; }
/// <summary>
/// 构造函数
/// </summary>
/// <param name="context"></param>
public Repository(ISqlSugarClient context) : base(context)//注意这里要有默认值等于null
{
_Db = context;
}