Mohammad Ali Ghanbari

Results 5 comments of 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

![Capture](https://github.com/apexcharts/apexcharts.js/assets/16043883/5f1c9f9f-a612-447c-b94c-b893d7941289) can any body help me with this?