Pure.Primitives.Abstractions.EFCore.ValueComparers
0.1.0-preview.0.2.0
dotnet add package Pure.Primitives.Abstractions.EFCore.ValueComparers --version 0.1.0-preview.0.2.0
NuGet\Install-Package Pure.Primitives.Abstractions.EFCore.ValueComparers -Version 0.1.0-preview.0.2.0
<PackageReference Include="Pure.Primitives.Abstractions.EFCore.ValueComparers" Version="0.1.0-preview.0.2.0" />
<PackageVersion Include="Pure.Primitives.Abstractions.EFCore.ValueComparers" Version="0.1.0-preview.0.2.0" />
<PackageReference Include="Pure.Primitives.Abstractions.EFCore.ValueComparers" />
paket add Pure.Primitives.Abstractions.EFCore.ValueComparers --version 0.1.0-preview.0.2.0
#r "nuget: Pure.Primitives.Abstractions.EFCore.ValueComparers, 0.1.0-preview.0.2.0"
#:package Pure.Primitives.Abstractions.EFCore.ValueComparers@0.1.0-preview.0.2.0
#addin nuget:?package=Pure.Primitives.Abstractions.EFCore.ValueComparers&version=0.1.0-preview.0.2.0&prerelease
#tool nuget:?package=Pure.Primitives.Abstractions.EFCore.ValueComparers&version=0.1.0-preview.0.2.0&prerelease
Pure.Primitives.Abstractions.EFCore.ValueComparers
EF Core ValueComparer implementations for Pure.Primitives types — correct change-tracking for Pure primitive types stored via EF Core.
Overview
Pure.Primitives.Abstractions.EFCore.ValueComparers provides ValueComparer<T> implementations for every type in the Pure.Primitives ecosystem. EF Core uses value comparers to detect whether a tracked property has changed. Because Pure primitives use interface-based equality rather than object.Equals, a custom comparer is required for each type to ensure correct snapshot comparison and change detection.
Pair these comparers with the converters from Pure.Primitives.Abstractions.EFCore.Converters when configuring entity properties.
Comparers
| Comparer | Compares |
|---|---|
BoolValueComparer |
IBool |
CharValueComparer |
IChar |
StringValueComparer |
IString |
NumberValueComparer<T> |
INumber<T> |
GuidValueComparer |
IGuid |
DateValueComparer |
IDate |
TimeValueComparer |
ITime |
DateTimeValueComparer |
IDateTime |
DayOfWeekValueComparer |
IDayOfWeek |
Dependencies
Pure.Primitives.Abstractions— Pure primitive interfaces
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. net11.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.3)
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net11.0
- Microsoft.EntityFrameworkCore (>= 11.0.0)
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net7.0
- Microsoft.EntityFrameworkCore (>= 7.0.20)
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.24)
- Pure.Primitives.Abstractions (>= 4.4.0)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.13)
- Pure.Primitives.Abstractions (>= 4.4.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Pure.Primitives.Abstractions.EFCore.ValueComparers:
| Package | Downloads |
|---|---|
|
Pure.Chart.RichRelationalModel.EFCore.Models.Configurations
Package Description |
|
|
Pure.Diagram.RichRelationalModel.EFCore.Models.Configurations
Package Description |
|
|
Pure.RelationalSchema.RichRelationalModel.EFCore.Models.Configurations
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.0.2.0 | 126 | 11/11/2026 |
| 0.1.0-preview.0.1.1 | 2,556 | 6/17/2026 |
| 0.1.0-preview.0.1.0 | 2,188 | 2/18/2026 |