Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremylikness/expressiongenerator

Example of creating dynamic LINQ expressions
https://github.com/jeremylikness/expressiongenerator

linq linq-expressions

Last synced: about 15 hours ago
JSON representation

Example of creating dynamic LINQ expressions

Awesome Lists containing this project

README

        

# ExpressionGenerator

This example parses a JSON file to dynamically build a LINQ predicate that can be used to filter objects.

To get started, simply clone and run. Make sure one of the `.json` source files is in your current directory (this is done automatically from Visual Studio). Each project has its own copy.

The `ExpressionGenerator` project can be set as startup for LINQ to Objects.

The `DatabaseTest` will apply the expressions to a locally created SQLite database.

For a full explanation and walk through, read [Dynamically Build LINQ Expressions](https://blog.jeremylikness.com/blog/dynamically-build-linq-expressions/).