Xfty.EntityFrameworkCore
1.0.0-beta.3
See the version list below for details.
dotnet add package Xfty.EntityFrameworkCore --version 1.0.0-beta.3
NuGet\Install-Package Xfty.EntityFrameworkCore -Version 1.0.0-beta.3
<PackageReference Include="Xfty.EntityFrameworkCore" Version="1.0.0-beta.3" />
<PackageVersion Include="Xfty.EntityFrameworkCore" Version="1.0.0-beta.3" />
<PackageReference Include="Xfty.EntityFrameworkCore" />
paket add Xfty.EntityFrameworkCore --version 1.0.0-beta.3
#r "nuget: Xfty.EntityFrameworkCore, 1.0.0-beta.3"
#:package Xfty.EntityFrameworkCore@1.0.0-beta.3
#addin nuget:?package=Xfty.EntityFrameworkCore&version=1.0.0-beta.3&prerelease
#tool nuget:?package=Xfty.EntityFrameworkCore&version=1.0.0-beta.3&prerelease
Xfty.EntityFrameworkCore
The real, database-backed IPersistenceGateway for
Xfty - the piece that makes
InsertMode.Now and .DepthBatched() actually persist, proven against a
real Entity Framework Core DbContext (SQLite and a real Postgres
container) rather than a mock.
dotnet add package Xfty.EntityFrameworkCore
Usage
using Net.Nowhereatall.Xfty.EntityFrameworkCore;
Contact contact = (Contact)await new RecordProvider(typeof(Contact), lookup)
.SetPersistenceGateway(new EfPersistenceGateway(dbContext))
.SetInsertMode(InsertMode.Now)
.Supply();
// contact is a real row, inserted through dbContext.SaveChangesAsync() -
// including its required Account, inserted first.
A string-typed Id left unset is filled with a fresh GUID before Add - the
common shape for a string primary key, which EF Core has no built-in
generator for (an integer identity column is left untouched; EF already
populates that on its own after SaveChangesAsync()). One SaveChangesAsync()
call per depth-batched layer when used with .DepthBatched().
Full documentation
- Insert modes -
MockvsNow, and what a configuredIPersistenceGatewaychanges - Deferred insert -
.DepthBatched(), dependency-ordered inserts across mixed record types - Unit vs. integration tests - the same Provider definitions serving both
- Everything else
Xftydoes
| 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
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Xfty (>= 1.0.0-beta.3)
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.0-beta.12 | 55 | 9/18/2026 |
| 1.0.0-beta.11 | 70 | 9/10/2026 |
| 1.0.0-beta.10 | 52 | 9/10/2026 |
| 1.0.0-beta.9 | 44 | 9/10/2026 |
| 1.0.0-beta.8 | 57 | 9/10/2026 |
| 1.0.0-beta.7 | 62 | 9/7/2026 |
| 1.0.0-beta.6 | 58 | 9/7/2026 |
| 1.0.0-beta.5 | 65 | 9/6/2026 |
| 1.0.0-beta.3 | 75 | 9/6/2026 |
| 1.0.0-beta.2 | 65 | 9/6/2026 |
| 1.0.0-beta.1 | 70 | 9/6/2026 |