mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
开放SqlsugarClient方便DAL层使用
This commit is contained in:
parent
3ff1c56717
commit
780d220e6f
|
@ -15,7 +15,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="sqlSugarCore" Version="5.0.1.2" />
|
||||
<PackageReference Include="sqlSugarCore" Version="5.0.2.6" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace Blog.Core.Repository.Base
|
|||
}
|
||||
}
|
||||
|
||||
internal ISqlSugarClient Db
|
||||
public ISqlSugarClient Db
|
||||
{
|
||||
get { return _db; }
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user