nextorm.entityframeworkcore 1.0.9

dotnet add package nextorm.entityframeworkcore --version 1.0.9
                    
NuGet\Install-Package nextorm.entityframeworkcore -Version 1.0.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nextorm.entityframeworkcore" Version="1.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nextorm.entityframeworkcore" Version="1.0.9" />
                    
Directory.Packages.props
<PackageReference Include="nextorm.entityframeworkcore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nextorm.entityframeworkcore --version 1.0.9
                    
#r "nuget: nextorm.entityframeworkcore, 1.0.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package nextorm.entityframeworkcore@1.0.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nextorm.entityframeworkcore&version=1.0.9
                    
Install as a Cake Addin
#tool nuget:?package=nextorm.entityframeworkcore&version=1.0.9
                    
Install as a Cake Tool

Nextorm — Entity Framework Core integration

NuGet

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 InMemory provider is not supported.

Documentation

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

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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