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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more