Thursday, March 24, 2016

Building LINQ Expressions Dynamically

I recently had a requirement to chain together LINQ Expressions and oddly enough, I could not find an easy way to accomplish this!!

You can read more about this dilemma here:

Fortunately, I found a library to accomplish this written by the same author of LINQPad:

Unfortunately, from this article it is not obvious that this library belongs to the NuGet Package LINQKit:

You can read more about LINQKit here:

In addition, there are several other libraries such as PredicateExtensions which assists with this as well:

It is also available as a NuGet package:

Unfortunately, the PredicateExtensions NuGet package is not strongly signed, so you may encounter problems with using this assembly in your own strongly signed projects.

No comments:

Post a Comment