173,240

Downloads

2,125

Downloads of v 2.6.0

200

Average downloads per day

2017-01-05

Last published

Share on Social Networks

License details

provided by Sonatype

MIT

Entity Framework Dynamic/Global Filters

2.6.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.

To install Entity Framework Dynamic/Global Filters, run the following command in the Package Manager Console

Install-Package EntityFramework.DynamicFilters

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).

Owners

Authors

John Cachat

Copyright

2017 John Cachat

Tags

Dependencies

Version History

Version Downloads Last updated
Entity Framework... 2.5.0 3,554 Friday, December 2, 2016
Entity Framework... 2.4.0 8,059 Monday, October 3, 2016
Entity Framework... 2.3.0 18,534 Wednesday, August 3, 2016
Entity Framework... 2.2.0 2,876 Wednesday, July 20, 2016
Entity Framework... 2.1.0 2,331 Thursday, July 7, 2016
Entity Framework... 2.0.0 238 Wednesday, July 6, 2016
Entity Framework... 1.4.11 29,919 Sunday, June 12, 2016
Entity Framework... 1.4.10.3 293 Sunday, June 12, 2016
Entity Framework... 1.4.10.2 17,167 Sunday, April 24, 2016
Entity Framework... 1.4.10.1 285 Friday, April 22, 2016
Entity Framework... 1.4.10 255 Thursday, April 21, 2016
Entity Framework... 1.4.9 1,196 Friday, April 8, 2016
Entity Framework... 1.4.8 1,133 Wednesday, March 23, 2016
Entity Framework... 1.4.7 15,363 Thursday, February 11, 2016
Entity Framework... 1.4.6 18,918 Thursday, December 17, 2015
Entity Framework... 1.4.5 3,364 Tuesday, December 1, 2015
Entity Framework... 1.4.4 1,739 Tuesday, November 17, 2015
Entity Framework... 1.4.3 3,031 Monday, October 26, 2015
Entity Framework... 1.4.2 1,629 Friday, October 16, 2015
Entity Framework... 1.4.1 13,830 Wednesday, August 19, 2015
Entity Framework... 1.4.0 5,596 Sunday, June 14, 2015
Entity Framework... 1.3.16 8,139 Monday, June 1, 2015
Entity Framework... 1.3.15 3,545 Saturday, May 16, 2015
Entity Framework... 1.3.14 565 Sunday, May 10, 2015
Entity Framework... 1.3.13 4,834 Wednesday, April 1, 2015
Entity Framework... 1.3.12 136 Saturday, March 28, 2015
Entity Framework... 1.3.11 169 Tuesday, March 24, 2015
Entity Framework... 1.3.10 157 Thursday, March 12, 2015
Entity Framework... 1.3.9 1,088 Thursday, March 5, 2015
Entity Framework... 1.3.8 178 Wednesday, February 18, 2015
Entity Framework... 1.3.7 348 Tuesday, February 17, 2015