LambdaExpressionBuilder 2.1.0-rc
dotnet add package LambdaExpressionBuilder --version 2.1.0-rc
NuGet\Install-Package LambdaExpressionBuilder -Version 2.1.0-rc
<PackageReference Include="LambdaExpressionBuilder" Version="2.1.0-rc" />
paket add LambdaExpressionBuilder --version 2.1.0-rc
#r "nuget: LambdaExpressionBuilder, 2.1.0-rc"
// Install LambdaExpressionBuilder as a Cake Addin #addin nuget:?package=LambdaExpressionBuilder&version=2.1.0-rc&prerelease // Install LambdaExpressionBuilder as a Cake Tool #tool nuget:?package=LambdaExpressionBuilder&version=2.1.0-rc&prerelease
Use LambdaExpressionBuilder to easily create lambda expressions to filter lists and database queries. It can be useful to turn WebApi requests parameters into expressions, create advanced search screens with the capability to save and re-run those filters, among other things.
Features:
- Ability to reference properties by their names
- Ability to reference properties from a property
- Ability to reference properties from list items
- Built-in null-checks
- Built-in XML serialization
- Globalization support [not available in .NetStandard 2.0 / .NetCore 2.0]
- Support for complex expressions (those that group up statements within parenthesis)
- Ability to create your own custom operations or overwrite the behaviour of the default operations
New on version 2.1:
- Added support for .NetStandard 2.0 (which should include support for .Net Core 2.0) (huge thanks to Joris Labie @labiej)
FilterFactory
class added to offer a "non-generics" approach for creating filters- Improved support for nested properties (issues #26 and #29)
- Added new 'NotIn' operator
- Fixed bug that used to throw an exception when using the
In
operator over a nullable property
New on version 2:
- Custom operations: create your own operations or overwrite the behaviour of the default operations
- Full support to Properties and Fields
- Enum renaming: FilterStatementConnector has changed to just Connector
- Other minor improvements
Upgrading to version 2:
Below are a few notes on things you must take into account when upgrading from version 1 to version 2:
- The
Operation
enum was substituted by a class. So, you'll need to add a reference to the new namespace in order to use it:using ExpressionBuilder.Operations;
- Obtaining operations by their names:
<br />Before:
(Operation)Enum.Parse(typeof(Operation), "EqualTo")
<br />Now:Operation.GetByName("EqualTo")
- Getting the number of values expected by an operation:
<br />Before:
new OperationHelper().NumberOfValuesAcceptable(Operation.EqualTo)
<br />Now:Operation.EqualTo.NumberOfValues
- Connecting filter statements:
<br />Before:
FilterStatementConnector.And
<br />Now:Connector.And
New on version 1.1.2:
- New operation added: DoesNotContain
- Support for complex expressions (those that group up statements within parenthesis)
- Added tests using LINQ to SQL (along with a bug fix regarding the library usage with LINQ to SQL)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5.2
- No dependencies.
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Binder (>= 2.2.0)
- Microsoft.Extensions.Configuration.Json (>= 2.2.0)
- System.ComponentModel.Annotations (>= 4.5.0)
- System.Configuration.ConfigurationManager (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.0-rc | 8,948 | 2/13/2019 |
2.0.2-beta | 799 | 1/19/2019 |
2.0.1 | 27,072 | 6/1/2018 |
1.1.2 | 1,585 | 2/26/2018 |
1.1.2-rc | 1,047 | 12/6/2017 |
1.1.1.22080 | 1,806 | 8/23/2017 |
1.1.0.27210 | 1,593 | 7/10/2017 |
Main changes in this version:
• Added support for .NetStandard 2.0 (which should include support for .Net Core 2.0) (huge thanks to Joris Labie @labiej)
• 'FilterFactory' class added to offer a "non-generics" approach for creating filters (issue #25)
• Improved support for nested properties (issues #26 and #29)
• Added new 'NotIn' operator (issue #36)
• Fixed bug that used to throw an exception when using the `In` operator over a nullable property (issue #37)