using Furion; using SqlSugar; namespace DocumentServiceAPI.Core { public class BaseRepository : SimpleClient where T : class, new() { public BaseRepository(ISqlSugarClient context = null) : base(context) { base.Context = App.GetService();//用手动获取方式支持切换仓储 } } }