luzimar / EasyExpressions

Library .Net to facilitate the use of linq expressions.

Home Page:https://www.nuget.org/packages/EasyExpressions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyExpressions

Features

  • Combine expressions using boolean operators (And, Or)

Use Case

Expression<Func<People, bool>> filter = x => true;

if(condition) filter = filter.And(x => x.LastName.Equals(lastName));

if(otherCondition) filter = filter.Or(x => x.Age == age);

var result = context.People.Where(filter);

Installation

dotnet add package EasyExpressions

License

MIT

Free Software, Hell Yeah!

About

Library .Net to facilitate the use of linq expressions.

https://www.nuget.org/packages/EasyExpressions/


Languages

Language:C# 100.0%