ISOCodex.Currency.EntityFrameworkCore
1.1.1
dotnet add package ISOCodex.Currency.EntityFrameworkCore --version 1.1.1
NuGet\Install-Package ISOCodex.Currency.EntityFrameworkCore -Version 1.1.1
<PackageReference Include="ISOCodex.Currency.EntityFrameworkCore" Version="1.1.1" />
<PackageVersion Include="ISOCodex.Currency.EntityFrameworkCore" Version="1.1.1" />
<PackageReference Include="ISOCodex.Currency.EntityFrameworkCore" />
paket add ISOCodex.Currency.EntityFrameworkCore --version 1.1.1
#r "nuget: ISOCodex.Currency.EntityFrameworkCore, 1.1.1"
#:package ISOCodex.Currency.EntityFrameworkCore@1.1.1
#addin nuget:?package=ISOCodex.Currency.EntityFrameworkCore&version=1.1.1
#tool nuget:?package=ISOCodex.Currency.EntityFrameworkCore&version=1.1.1
ISOCodex.Currency.EntityFrameworkCore
Public documentation and support
This adapter requires .NET 10 and Entity Framework Core 10. It does not support classic .NET Framework or EF6. Its packed-package consumer verifies a real SQLite money round trip; the database provider is chosen by the consuming application.
Entity Framework Core integration helpers for ISOCodex.Currency.
Install
dotnet add package ISOCodex.Currency.EntityFrameworkCore --version 1.1.1
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.1.1)
- 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.1.1 | 83 | 9/19/2026 |
| 1.1.0 | 129 | 9/19/2026 |
| 1.0.2 | 134 | 6/23/2026 |
| 1.0.1 | 124 | 6/23/2026 |
| 1.0.0 | 122 | 6/23/2026 |
| 0.9.0-alpha.15 | 64 | 6/23/2026 |
| 0.9.0-alpha.14 | 67 | 6/23/2026 |
| 0.9.0-alpha.13 | 71 | 6/23/2026 |
| 0.9.0-alpha.12 | 64 | 6/23/2026 |
| 0.9.0-alpha.11 | 70 | 6/23/2026 |
| 0.9.0-alpha.10 | 70 | 6/23/2026 |
| 0.9.0-alpha.9 | 69 | 6/22/2026 |
| 0.9.0-alpha.8 | 80 | 6/22/2026 |
Updated NuGet project and README links to public documentation and aligned ISOCodex patch dependencies. Existing APIs, targets and MIT licensing are unchanged.