DotNetRules.Web.Mvc 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetRules.Web.Mvc --version 1.0.0
                    
NuGet\Install-Package DotNetRules.Web.Mvc -Version 1.0.0
                    
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="DotNetRules.Web.Mvc" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetRules.Web.Mvc" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DotNetRules.Web.Mvc" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetRules.Web.Mvc --version 1.0.0
                    
#r "nuget: DotNetRules.Web.Mvc, 1.0.0"
                    
#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.
#:package DotNetRules.Web.Mvc@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetRules.Web.Mvc&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DotNetRules.Web.Mvc&version=1.0.0
                    
Install as a Cake Tool

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);
}

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.4722.37515 2,518 12/5/2012
1.0.4719.36642 1,597 12/2/2012
1.0.1 1,698 12/1/2012
1.0.0 1,749 12/1/2012