liaoxujun@qq.com
2023-08-28 5763edd7cbb4ac968c91d5adae444ef66fac6859
1
2
3
4
5
6
7
8
9
10
11
12
13
using Furion;
using SqlSugar;
 
namespace DocumentServiceAPI.Core
{
    public class BaseRepository<T> : SimpleClient<T> where T : class, new()
    {
        public BaseRepository(ISqlSugarClient context = null) : base(context)
        {
            base.Context = App.GetService<ISqlSugarClient>();//用手动获取方式支持切换仓储
        }
    }
}