Skip to content

Library for creating dynamic lambda expressions to use in every linq querys, including EF querys

Notifications You must be signed in to change notification settings

AlbertoMonteiro/DynamicExpressionBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Dynamic Lambda Functions Builder

Help you to create functions when you have optional parameters

Example:

	
List<Person> _peoples = new List<Person>
		  {
			  new Person("Alberto", 22, true),
			  new Person("Fabio", 24, false),
			  new Person("Abraão", 23, false),
			  new Person("Pedro", 26, false)
		  };

var target = new FilterExpression<Person>();

var filterExpression = target
	.Start(p => p.Name.Contains("o"))
	.And(p => p.Age <= 25, false);
	.And(p => p.Age >= 26, true);

_peoples.Where(filterExpression.ResultExpression) == _peoples.Where(p1 => p1.Name.Contains("o") && p.Age >= 26);
	

About

Library for creating dynamic lambda expressions to use in every linq querys, including EF querys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages