Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jeremylikness/expressiongenerator
- Owner: JeremyLikness
- License: mit
- Created: 2020-06-03T13:56:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T21:36:03.000Z (over 4 years ago)
- Last Synced: 2024-11-09T03:56:18.869Z (6 days ago)
- Topics: linq, linq-expressions
- Language: C#
- Homepage: https://blog.jeremylikness.com/blog/dynamically-build-linq-expressions/
- Size: 13.7 KB
- Stars: 115
- Watchers: 10
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/).