ISOCodex.Currency.EntityFrameworkCore 1.0.2

dotnet add package ISOCodex.Currency.EntityFrameworkCore --version 1.0.2
                    
NuGet\Install-Package ISOCodex.Currency.EntityFrameworkCore -Version 1.0.2
                    
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="ISOCodex.Currency.EntityFrameworkCore" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ISOCodex.Currency.EntityFrameworkCore" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ISOCodex.Currency.EntityFrameworkCore" />
                    
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 ISOCodex.Currency.EntityFrameworkCore --version 1.0.2
                    
#r "nuget: ISOCodex.Currency.EntityFrameworkCore, 1.0.2"
                    
#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 ISOCodex.Currency.EntityFrameworkCore@1.0.2
                    
#: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=ISOCodex.Currency.EntityFrameworkCore&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ISOCodex.Currency.EntityFrameworkCore&version=1.0.2
                    
Install as a Cake Tool

ISOCodex.Currency.EntityFrameworkCore

Entity Framework Core integration helpers for ISOCodex.Currency.

Install

dotnet add package ISOCodex.Currency.EntityFrameworkCore --version 1.0.2

This package targets net10.0 and references Microsoft.EntityFrameworkCore.Relational.

Currency Codes

Use HasCurrencyCodeConversion() to store CurrencyCode as an uppercase, non-Unicode, fixed-length alpha-3 code.

builder.Property(order => order.Currency)
    .HasCurrencyCodeConversion()
    .HasColumnName("CurrencyCode");

Money

Use ComplexMoney(...) to store Money as separate amount and currency-code columns.

builder.ComplexMoney(
    order => order.Total,
    amountColumn: "TotalAmount",
    currencyColumn: "TotalCurrency");

The default amount column type is decimal(19,4). Override it when the domain needs a different precision or scale.

This package deliberately does not store formatted money strings or currency symbols. Store amount and currency code separately so records remain queryable and auditable.

Minor Units

Exact minor-unit persistence should be modelled explicitly in the application, for example as long MinorUnits plus CurrencyCode CurrencyCode. EF Core value converters cannot map one Money value into two primitive provider columns by themselves.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.2 102 6/23/2026
1.0.1 108 6/23/2026
1.0.0 106 6/23/2026
0.9.0-alpha.15 51 6/23/2026
0.9.0-alpha.14 55 6/23/2026
0.9.0-alpha.13 60 6/23/2026
0.9.0-alpha.12 53 6/23/2026
0.9.0-alpha.11 60 6/23/2026
0.9.0-alpha.10 58 6/23/2026
0.9.0-alpha.9 59 6/22/2026
0.9.0-alpha.8 56 6/22/2026