Mohammad Ali Ghanbari
Mohammad Ali Ghanbari
GlobalFilter is a base class that i will inject a list from it to my dbcontext from its constructor ``` public class AppDbContext : IdentityDbContext, IUnitOfWork { private readonly List...
any way i need a way to decouple my db context from system requirement logics as the application grows dbcontext filters conut grows too and i tried to do some...
``` modelBuilder.Filter("RestrictItemsBaseOnAccsess", (IAccessRestrictedItem x, List roles) => x.AccessType == AccessType.Public || roles.Any(r=>r== x.AllowedRolesPremissionJsonString), (AppDbContext ctx)=> ctx.CurrentUserRoles); ``` i wrote this for sake of testing but the same problem exists :...
any idea ?? i still have that problem yeah i know its alot of explanations :D
 can any body help me with this?