EntityFramework.DynamicFilters 2.8.0

Provides global & scoped filters for Entity Framework with dynamic filter parameters that are evaluated at query execution.  Supports use cases such as Multi-Tenancy and Soft Deletes.

There is a newer version of this package available.
See the version list below for details.
Install-Package EntityFramework.DynamicFilters -Version 2.8.0
dotnet add package EntityFramework.DynamicFilters --version 2.8.0
<PackageReference Include="EntityFramework.DynamicFilters" Version="2.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFramework.DynamicFilters --version 2.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EntityFramework.DynamicFilters, 2.8.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityFramework.DynamicFilters as a Cake Addin
#addin nuget:?package=EntityFramework.DynamicFilters&version=2.8.0

// Install EntityFramework.DynamicFilters as a Cake Tool
#tool nuget:?package=EntityFramework.DynamicFilters&version=2.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Full Change Log: https://github.com/jcachat/EntityFramework.DynamicFilters/blob/master/src/CHANGELOG.TXT

1.4.9: Fixed filters not being applied to "ChildCollection.Any()" condition in .Where clause.  Fixed handling of single property bool conditions in filters (i.e. "e.BoolFlag" or "!e.BoolFlag").
1.4.10: Generated SQL now does not include the "OR (@DynamicFilterParam_1 IS NOT NULL)" clause if filter is not disabled - fixes bad index usage in some cases on SQL Server.  Will still be included if filter is disabled.  Also fixed some "contains" issues with MySql.
1.4.10.1: Fixed to remove multiple occurrences of filter disabled params (can appear multiple times in complex queries)
1.4.10.2: Added methods to turn off the enable/disable filter functionality completely so those conditions are not included in sql query at all.
1.4.10.3: Fixed issues removing disabled filter condition on PostgreSQL
1.4.11: Signed the assembly
2.0.0-alpha: Support for filtering on Navigation Properties.  See https://github.com/jcachat/EntityFramework.DynamicFilters/issues/65
2.0: See https://github.com/jcachat/EntityFramework.DynamicFilters#changes-in-version-2 for changes.
2.1: Added support for Any() and All() on child collections
2.2: Fixed SQL generation issue when main query (not filter predicate) contains nullable types.  Added ability to not apply filter to specific types.
2.3: Fixed issue with entry.Load() on child collections
2.4: Fixed null exception error on a filter of child property that is also TPT
2.5: Fixed filtered child property of same type as parent entity builds backwards join condition.  Added support for ?? operator.
2.6: Fixed issue with filter not applied when defined on derived class involved in TPH.  Fixed filter not applied to navigation property when nav prop is a TPT entity.  Fixed issue with filter on nullable property specified as null via parameter (not delegate).
2.7: Fixed exception when accessing class in deep inheritance graph
2.8: Support properties & method references inside filter linq expressions (as constant values, not dynamic), Support child property filters in Oracle 12, Fixed issues caused by removing "filter is disabled" claused during sql interception on SQL CE and Oracle DevArt dotConnect providers

NuGet packages (23)

Showing the top 5 NuGet packages that depend on EntityFramework.DynamicFilters:

Package Downloads
Abp.EntityFramework
Abp.EntityFramework
Stove.EntityFramework
EntityFramework integration for Stove.
Witcare.Data
Witcare Data dll
Skymate.EntityFramework
Skymate Framework
Vstack.Services
Vstack.Services

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on EntityFramework.DynamicFilters:

Repository Stars
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
Jimmey-Jiang/ABP-ASP.NET-Boilerplate-Project-CMS
ABP module-zero +AdminLTE+Bootstrap Table+jQuery+Redis + sql server+quartz+hangfire权限管理系统
aspnetboilerplate/eventcloud
Sample SaaS (Multi Tenant) Event Management Application
stoveproject/Stove
Domain Driven Design oriented application framework, meets CRUD needs

Version History

Version Downloads Last updated
3.2.0 72,879 6/15/2020
3.1.1 150,061 11/3/2019
3.1.0 57,633 7/24/2019
3.0.2-preview6-01 324 7/12/2019
3.0.1 527,350 11/10/2017
3.0.0 9,029 11/1/2017
2.11.0-beta2 714 9/18/2017
2.11.0-beta1 543 9/18/2017
2.10.0 156,947 7/25/2017
2.9.1 1,138 7/24/2017
2.9.0 3,047 7/17/2017
2.8.1 13,614 6/26/2017
2.8.0 1,279 6/25/2017
2.7.0 62,911 5/10/2017
2.6.0 85,086 1/5/2017
2.5.0 18,394 12/2/2016
2.4.0 40,471 10/3/2016
2.3.0 42,418 8/3/2016
2.2.0 7,198 7/20/2016
2.1.0 22,173 7/7/2016
2.0.0 1,050 7/6/2016
1.4.11 176,493 6/12/2016
1.4.10.3 1,237 6/12/2016
1.4.10.2 45,006 4/24/2016
1.4.10.1 937 4/22/2016
1.4.10 989 4/21/2016
1.4.9 2,325 4/8/2016
1.4.8 1,896 3/23/2016
1.4.7 22,455 2/11/2016
1.4.6 29,868 12/17/2015
1.4.5 5,327 12/1/2015
1.4.4 10,691 11/17/2015
1.4.3 7,679 10/26/2015
1.4.2 3,361 10/16/2015
1.4.1 42,646 8/19/2015
1.4.0 9,721 6/14/2015
1.3.16 19,262 6/1/2015
1.3.15 5,668 5/16/2015
1.3.14 1,245 5/10/2015
1.3.13 6,624 4/1/2015
1.3.12 770 3/28/2015
1.3.11 823 3/24/2015
1.3.10 893 3/12/2015
1.3.9 15,524 3/5/2015
1.3.8 827 2/18/2015
1.3.7 1,309 2/17/2015
Show less