Xfty.EntityFramework6
1.0.0-beta.12
dotnet add package Xfty.EntityFramework6 --version 1.0.0-beta.12
NuGet\Install-Package Xfty.EntityFramework6 -Version 1.0.0-beta.12
<PackageReference Include="Xfty.EntityFramework6" Version="1.0.0-beta.12" />
<PackageVersion Include="Xfty.EntityFramework6" Version="1.0.0-beta.12" />
<PackageReference Include="Xfty.EntityFramework6" />
paket add Xfty.EntityFramework6 --version 1.0.0-beta.12
#r "nuget: Xfty.EntityFramework6, 1.0.0-beta.12"
#:package Xfty.EntityFramework6@1.0.0-beta.12
#addin nuget:?package=Xfty.EntityFramework6&version=1.0.0-beta.12&prerelease
#tool nuget:?package=Xfty.EntityFramework6&version=1.0.0-beta.12&prerelease
Xfty.EntityFramework6
A database-backed IPersistenceGateway for
Xfty, for a project still on classic
Entity Framework 6 (System.Data.Entity.DbContext, the EntityFramework
NuGet package) rather than EF Core - see
Xfty.EntityFrameworkCore
for that one instead. The two DbContext types are unrelated, so this is a
separate implementation, not a variant of the EF Core one - install whichever
matches what your project actually references.
dotnet add package Xfty.EntityFramework6
Usage
using Net.NowhereAtAll.Xfty.EntityFramework6;
Contact contact = (Contact)await new RecordProvider(typeof(Contact), lookup)
.SetPersistenceGateway(new Ef6PersistenceGateway(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 insert - the
common shape for a string primary key, which EF6 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().
Target frameworks
net461;netstandard2.1 - EF6 itself ships no netstandard2.0 asset, so this
package doesn't either (see the package README of Xfty.EntityFrameworkCore
or the roadmap
for the fuller multi-targeting story). netstandard2.1 covers everything
modern (net8.0, net10.0, and anything else netstandard2.1+). The classic
side is net461, not net472: EF6 itself reaches back further still
(net40/net45), but this package's own dependency on Xfty
(netstandard2.0) can't be consumed below .NET Framework 4.6.1 at all -
that's the real floor, not EF6's - so net461 is targeted directly rather
than a newer, more conservative Framework version. Any .NET Framework
4.6.1+ project can reference this package.
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 | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 was computed. 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 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- EntityFramework (>= 6.5.2)
- Xfty (>= 1.0.0-beta.12)
-
.NETStandard 2.1
- EntityFramework (>= 6.5.2)
- Xfty (>= 1.0.0-beta.12)
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 | 46 | 9/18/2026 |