Skip to content

A package that helps to create expressions dynamically for unknown type

License

Notifications You must be signed in to change notification settings

KitsKlip/ExpressionBuilder

Repository files navigation

ExpressionBuilder

** ExpressionBuilder A package that helps to create expressions dynamically for unknown type


Features

  • Create Expression on any object at runtime based on property name
  • String comparisons can include
  • DirectComparison
  • DirectComparisonWithNullCheck (NotNull && ...)
  • ToUpper (value.ToUpper()...)
  • ToUpperWithNullCheck (NotNull && value.ToUpper()...)
  • ToLower (value.ToLower()...)
  • ToLowerWithNullCheck (NotNull && value.ToLower()...)

Installing

Add this NuGet dependency to your project:

PM> Install-Package Uhuru.ExpressionBuilder

https://www.nuget.org/packages/Uhuru.ExpressionBuilder/

Usage

Usage
using Uhuru.ExpressionBuilder;

...

var expression = ExpressionBuilder.CreateFilterExpression<FakeObject, T>(propertyName, propertyValue, filterType, ExpressionsBuilderSettings.Create(stringExpressionsOptions));

About

A package that helps to create expressions dynamically for unknown type

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages