Skip to content
Predicate extensions C#, LINQ and EntityFramework
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Nuget Added NuGet Packages Nov 25, 2013
PredicateExtensions.Tests Refactored unit tests Oct 31, 2013
PredicateExtensions init Oct 30, 2013
.gitattributes init Oct 30, 2013
.gitignore init Oct 30, 2013
LICENSE.md Added NuGet Packages Nov 25, 2013
PredicateExtensions.sln Enabled NuGet package restore Nov 25, 2013
readme.md Added article link Nov 18, 2013

readme.md

#PredicateExtensions

PredicateExtensions is a C# utility that will take two Lambda expressions and combine them using .And or .Or extension methods. Expressions be joined at runtime for dynamic LINQ queries. PredicateExtensions can be used with EntityFramework to refactor and create dynamic queries.

##Example Expression<Func<string, bool>> equalsA = str => str == "A"; Expression<Func<string, bool>> equalsB = str => str == "B";

IQueryable<string> myValues = {"A", "B", "C", "D" };
myValues.Where(equalsA.Or(equalsB)); //"A", "B"

For more information see: Giving Clarity to LINQ Queries by Extending Expressions

You can’t perform that action at this time.