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
<PackageReference Include="ISOCodex.Currency.EntityFrameworkCore" Version="1.0.2" />
<PackageVersion Include="ISOCodex.Currency.EntityFrameworkCore" Version="1.0.2" />
<PackageReference Include="ISOCodex.Currency.EntityFrameworkCore" />
paket add ISOCodex.Currency.EntityFrameworkCore --version 1.0.2
#r "nuget: ISOCodex.Currency.EntityFrameworkCore, 1.0.2"
#:package ISOCodex.Currency.EntityFrameworkCore@1.0.2
#addin nuget:?package=ISOCodex.Currency.EntityFrameworkCore&version=1.0.2
#tool nuget:?package=ISOCodex.Currency.EntityFrameworkCore&version=1.0.2
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 | Versions 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. |
-
net10.0
- ISOCodex.Currency (>= 1.0.2)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.9)
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 |