DotNetRules.Web.Mvc 1.0.4722.37515

An extension for the DotNetRules Library. Cleverly it’s called “DotNetRules.Web.Mvc”. It has the big advantage that it uses the ModelState to log errors. To use it, simply call ApplyPolicy(For) at the ModelState, like so:

ModelState.ApplyPoliciesFor(orig, product,
   policies: new[] { typeof(MapProductLegalPolicy) });
if (!ModelState.IsValid)
{
   return Edit(product.Id);
}

Install-Package DotNetRules.Web.Mvc -Version 1.0.4722.37515
dotnet add package DotNetRules.Web.Mvc --version 1.0.4722.37515
<PackageReference Include="DotNetRules.Web.Mvc" Version="1.0.4722.37515" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetRules.Web.Mvc --version 1.0.4722.37515
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.4722.37515 1,040 12/5/2012
1.0.4719.36642 474 12/2/2012
1.0.1 501 12/1/2012
1.0.0 462 12/1/2012