SpearSoft.RulesEngine 1.0.1

dotnet add package SpearSoft.RulesEngine --version 1.0.1
NuGet\Install-Package SpearSoft.RulesEngine -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpearSoft.RulesEngine" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpearSoft.RulesEngine --version 1.0.1
#r "nuget: SpearSoft.RulesEngine, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpearSoft.RulesEngine as a Cake Addin
#addin nuget:?package=SpearSoft.RulesEngine&version=1.0.1

// Install SpearSoft.RulesEngine as a Cake Tool
#tool nuget:?package=SpearSoft.RulesEngine&version=1.0.1

Rules Engine is a C# project that makes it easier for developers to define business rules on domain objects without coupling the domain object to the business rule. The rules engine supports cross-field validation and conditional validation. Rules are interface-based and are easily extensible. Rules can be added using a fluent interface.

Note - SpearSoft.RulesEngine is a fork of the original RulesEngine that was published by athoma13 on CodePlex but has not been maintained for some time and was not ported (as far as I can tell) to another public source management system before CodePlex was shutdown. The original but archived source can be found here. I also changed the namespace on this version from RulesEngine to SpearSoft.RulesEngine to prevent namespace collisions. Also, this version has already been ported to target .net core 2.1 and the library is targeting .net standard 2.0.

What is Rules Engine
Rules Engine is a . NET C# project that validates business logic by defining a bunch of rules for your data classes. Rules are defined using a fluent-interface (fluent validation) helper class, and not by decorating your existing objects with attributes, therefore de-coupling validation logic from data (or domain) classes. ##Features

Rules are inheritable. Defining RuleX for TypeA will also apply to TypeB (given that TypeB inherits from Type A) Details.
Rules are extensible. Creating custom rules are only a matter of implementing an interface. Details
Conditional validation. When defining rules, it is possible to have different rules given different conditions. E.g. Not Null Rule only applies to FieldA when FieldB > 100. Details
Cross-Field validation. Defining a rule that FieldA must be greater than FieldB comes very naturally with the fluent-interface helper class. Details
Fluent-Interface. Adding rules to objects is done by a fluent-interface helper class. Details
Error Messages. Defining error messages can be done at the same time as defining your rules (Or separately). They can apply to the Class, A Property of that class, or a Rule for that property. Details
ASP.NET Mvc
An asp.net Mvc bridge is available for download. To use, create an instance of MvcValidationReport in one of your controllers, passing it your ModelState, Validate the model and that's it. The report will populate ModelState with error messages (if any). No more Attribute-Style validation.

NOTE: This does not support client-side validation.

Product 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

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
1.0.1 1,565 9/20/2018