mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
sqlsugar动态查询
This commit is contained in:
16
OpenAuth.Repository/SqlSugarRepository.cs
Normal file
16
OpenAuth.Repository/SqlSugarRepository.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
|
||||
namespace OpenAuth.Repository;
|
||||
|
||||
/// <summary>
|
||||
/// SqlSugar仓储
|
||||
/// <para>具体用法参考:https://www.donet5.com/Home/Doc?typeId=1228</para>
|
||||
/// </summary>
|
||||
public class SqlSugarRepository<T>: SimpleClient<T> where T : class, new()
|
||||
{
|
||||
public SqlSugarRepository(ISqlSugarClient client)
|
||||
{
|
||||
base.Context=client;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user