https://github.com/oldrev/sexpressionforlinq
SexpressionForLinq is a LISP-style S-Expression parser to generate dynamic LINQ Expression Tree.
https://github.com/oldrev/sexpressionforlinq
Last synced: about 1 year ago
JSON representation
SexpressionForLinq is a LISP-style S-Expression parser to generate dynamic LINQ Expression Tree.
- Host: GitHub
- URL: https://github.com/oldrev/sexpressionforlinq
- Owner: oldrev
- Created: 2017-08-11T03:34:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T04:10:30.000Z (over 6 years ago)
- Last Synced: 2025-06-13T00:04:50.218Z (about 1 year ago)
- Language: C#
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SexpressionForLinq
SexpressionForLinq is a LISP-style S-Expression parser to generate dynamic LINQ Expression Tree.
# Usage
```csharp
var employees = ... // Load from EF Entities or anything else.
// Write a S-Expression to filter
var exp = "(= Department.Company.Name 'Dunder Miffilin Paper Company')";
// Do the LINQ
var filteredEmployees = employees.Where(exp).ToList();
```