Entity Framework Dynamic Filters


Downloaded more than
0
times !
//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);

What's EF Dynamic Filters?

What's EF Dynamic Filters?

Entity Framework Dynamic Filter allows filtering all queries using a LINQ expression.

When should I use EF Dynamic Filters?

When should I use EF Dynamic Filters?

Whenever you need to filter all your questions such as Multi-Tenancy, Soft Delete, Active/Inactive, Etc.

Is EF Dynamic Filters SQL Injections safe?

Is EF Dynamic Filters SQL Injections safe?

Yes, our library uses LINQ expression to set parameters to avoid SQL injections.

Is EF Core supported?

Is EF Core supported?

No, this library requires DbInterception which has not been implemented yet by the EF Core team.

Need more performance?

Need more performance?

Find out how to dramatically improve EF performances with
Entity Framework Extensions

Where can I find examples?

Where can I find examples?

Online examples are now available!

Online Examples

We need your help to support this Entity Framework Dynamic Filters!

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!


> 3,000+ Requests answered per year
> $100,000 USD investment per year
> 500 Commits per year
> 100 Releases per year