//Extend DbContext context.DisableFilter("IsDeleted"); context.DisableAllFilters(); context.EnableAllFilters(); //Extend DbModelBuilder modelBuilder.DisableFilterGlobally("IsDeleted"); modelBuilder.EnableFilterGlobally("IsDeleted"); modelBuilder.Filter("IsDeleted", (ISoftDelete d) => d.IsDeleted, false);
Entity Framework Dynamic Filter allows filtering all queries using a LINQ expression.
Whenever you need to filter all your questions such as Multi-Tenancy, Soft Delete, Active/Inactive, Etc.
Yes, our library uses LINQ expression to set parameters to avoid SQL injections.
No, this library requires DbInterception which has not been implemented yet by the EF Core team.
Find out how to dramatically improve EF performances with
Entity Framework Extensions
Entity Framework Dynamic Filters is FREE and always will be.
However, last year alone, we spent over 3000 hours maintaining our free projects! We need resources to keep developing our open-source projects.
We highly appreciate any contribution!