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.
See the version list below for details.
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.
184.108.40.206: Fixed to remove multiple occurrences of filter disabled params (can appear multiple times in complex queries)
220.127.116.11: Added methods to turn off the enable/disable filter functionality completely so those conditions are not included in sql query at all.
18.104.22.168: 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
- EntityFramework (>= 6.1.1)