Entity Framework Dynamic Filters

Download Count:
EASY TO
USE
Extend Entity Framework
//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);
EASY TO
CUSTOMIZE
Flexible and feature-rich API
	
//Specified as Func<object>
modelBuilder.Filter("Notes_CurrentUser",
(Note n) => n.PersonID, () =>
GetPersonIDFromPrincipal(
Thread.CurrentPrincipal));

// Specified as Func<DbContext, object>
modelBuilder.Filter("Notes_CurrentUser",
(Note n) => n.PersonID, (MyContext ctx) =>
ctx.CurrentPersonID);

Amazing performance, outstanding support!

We were very, very pleased with the customer support. There was no question, problem or wish that was not answered AND solved within days! We think that’s very unique!

I’d definitely recommend it as it is a great product with a great performance and reliability.

Thanks, Jonathan! And my words may be kind, but more importantly, they are true. Entity just doesn't work properly without Z!