JeremyLikness / ExpressionGenerator

Example of creating dynamic LINQ expressions

Home Page:https://blog.jeremylikness.com/blog/dynamically-build-linq-expressions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Example of creating dynamic LINQ expressions

https://blog.jeremylikness.com/blog/dynamically-build-linq-expressions/

License:MIT License


Languages

Language:C# 100.0%