DEV Community

Alexandre Murari Junior
Alexandre Murari Junior

Posted on

4 1

Exprelsior - Dynamic lambda expression/Predicate generator

Hello, everyone!

I present to you my new open-source project: Exprelsior!

Exprelsior is a .NET Standard library that enables .NET developers to create strongly-typed binary lambda expressions from pure text using it's own query syntax or from the expression builder method.

With support to all major .NET data types, including nullable types, nested properties and it's own query syntax, Exprelsior brings the creation of dynamic predicates to a whole new level.

Example:

This pure, simple string: "eq('Name', 'John')"

Gets translated to this:

t => t.Name == "John"

Then you can use your expression normally. This is specially useful if used with an ORM like Entity Framework, because it enables you to create predicates dynamically.

Here's the link to the project: https://github.com/alexmurari/Exprelsior

Hope you like it.

Alex.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay