using LearningOfficer.OA.Core.Entities; using SqlSugar; namespace LearningOfficer.OA.Infrastructure.DBContext { /// /// SqlSugar通用仓储类 /// /// public class SugarRepository : SimpleClient where TEntity : BaseEntity, new() { public SugarRepository(ISqlSugarClient sugarClient) : base(sugarClient) { var db = sugarClient.AsTenant().GetConnectionWithAttr(); base.Context = db; } public IEnumerable Queryable(Func value) { throw new NotImplementedException(); } } }