DecimalModelBinder 1.0.1
dotnet add package DecimalModelBinder --version 1.0.1
NuGet\Install-Package DecimalModelBinder -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="DecimalModelBinder" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DecimalModelBinder" Version="1.0.1" />Directory.Packages.props
<PackageReference Include="DecimalModelBinder" />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 DecimalModelBinder --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DecimalModelBinder, 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.
#:package DecimalModelBinder@1.0.1
#: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=DecimalModelBinder&version=1.0.1Install as a Cake Addin
#tool nuget:?package=DecimalModelBinder&version=1.0.1Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
**IMPORTANT**
Add the code below to your Global.asax > Application_Start() in order to load the binder in the application start:
ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
This is the code from http://haacked.com/archive/2011/03/19/fixing-binding-to-decimals.aspx/ with a few changes to work with invariant culture and multiple currency types in the same Model/page.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DecimalModelBinder:
| Package | Downloads |
|---|---|
|
CurrencyFor.HTMLHelper
Currency HTML Helper for handling decimal currency fields. Uses JQuery for mask. |
GitHub repositories
This package is not used by any popular GitHub repositories.