开放SqlsugarClient方便DAL层使用

This commit is contained in:
hudingwen 2021-03-03 13:36:58 +08:00
parent 3ff1c56717
commit 780d220e6f
3 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="sqlSugarCore" Version="5.0.1.2" />
<PackageReference Include="sqlSugarCore" Version="5.0.2.6" />
</ItemGroup>
<ItemGroup>

View File

@ -43,7 +43,7 @@ namespace Blog.Core.Repository.Base
}
}
internal ISqlSugarClient Db
public ISqlSugarClient Db
{
get { return _db; }
}

View File

@ -10,6 +10,10 @@ namespace Blog.Core.IRepository.Base
{
public interface IBaseRepository<TEntity> where TEntity : class
{
/// <summary>
/// SqlsugarClient实体
/// </summary>
ISqlSugarClient Db { get;}
/// <summary>
/// 根据Id查询实体
/// </summary>