nextorm.entityframeworkcore
1.0.9
dotnet add package nextorm.entityframeworkcore --version 1.0.9
NuGet\Install-Package nextorm.entityframeworkcore -Version 1.0.9
<PackageReference Include="nextorm.entityframeworkcore" Version="1.0.9" />
<PackageVersion Include="nextorm.entityframeworkcore" Version="1.0.9" />
<PackageReference Include="nextorm.entityframeworkcore" />
paket add nextorm.entityframeworkcore --version 1.0.9
#r "nuget: nextorm.entityframeworkcore, 1.0.9"
#:package nextorm.entityframeworkcore@1.0.9
#addin nuget:?package=nextorm.entityframeworkcore&version=1.0.9
#tool nuget:?package=nextorm.entityframeworkcore&version=1.0.9
Nextorm — Entity Framework Core integration
Runs Nextorm queries and commands over the connection and
transaction of an existing EF Core DbContext, reusing the EF model mapping instead of declaring it
again. Keep writes, change tracking and navigation fixup in EF Core; use nextorm for the analytical
reads it is built for — windows, CTEs, aggregates — on the very same connection.
Installation
All current nextorm releases are prereleases, so --prerelease is required:
dotnet add package nextorm.entityframeworkcore --prerelease
Package Manager Console: Install-Package nextorm.entityframeworkcore -Prerelease.
The package already references nextorm.core and the PostgreSQL, SQL Server, SQLite and MySQL
providers, so no separate nextorm provider package is needed.
Usage
using Microsoft.EntityFrameworkCore;
using NextORM.Core; // From<T>() and the terminal extension methods
using NextORM.EntityFrameworkCore; // CreateNextOrmContext()
using var db = new AppDbContext(options); // your EF Core context
// Runs on db's connection and, when EF has one open, enlists in EF's current transaction.
using var next = db.CreateNextOrmContext();
var top = next.From<Order>()
.Where(order => order.Total > 100)
.OrderBy(order => order.Total)
.Select(order => new { order.Id, order.Total })
.ToList();
Pass a callback to override nextorm defaults after the provider is detected from
Database.ProviderName:
using var next = db.CreateNextOrmContext(builder => builder
.UseLoggerFactory(loggerFactory)
.UseCommandTimeout(30));
Good to know
- The bridge never commits, rolls back or closes the connection or transaction — EF Core keeps ownership of both.
- Table and column mapping comes from the EF
IModel, so entity classes need no nextorm[SqlTable]/[Column](or fluent) configuration.NextOrmModelMapper.Register(db.Model)maps a model without creating a context. - EF Core Relational only: SQL Server, PostgreSQL, SQLite and MySQL/MariaDB providers are
recognised; EF's non-relational
InMemoryprovider is not supported.
Documentation
- Entity Framework Core integration
- Quickstart
- Query reuse: plan cache vs
Prepare() - Comparisons and benchmarks
Status
Beta: every release so far is a prerelease, the public API still changes between them, and backward compatibility is not preserved yet. Release notes are on GitHub Releases.
License
| 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. net11.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- nextorm (>= 1.0.9)
- nextorm.mysql (>= 1.0.9)
- nextorm.postgres (>= 1.0.9)
- nextorm.sqlite (>= 1.0.9)
- nextorm.sqlserver (>= 1.0.9)
-
net11.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- nextorm (>= 1.0.9)
- nextorm.mysql (>= 1.0.9)
- nextorm.postgres (>= 1.0.9)
- nextorm.sqlite (>= 1.0.9)
- nextorm.sqlserver (>= 1.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.9 | 85 | 11/11/2026 |