Doka.EntityFrameworkCore.NestedSet.SqlServer 10.2.0

dotnet add package Doka.EntityFrameworkCore.NestedSet.SqlServer --version 10.2.0
                    
NuGet\Install-Package Doka.EntityFrameworkCore.NestedSet.SqlServer -Version 10.2.0
                    
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="Doka.EntityFrameworkCore.NestedSet.SqlServer" Version="10.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Doka.EntityFrameworkCore.NestedSet.SqlServer" Version="10.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Doka.EntityFrameworkCore.NestedSet.SqlServer" />
                    
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 Doka.EntityFrameworkCore.NestedSet.SqlServer --version 10.2.0
                    
#r "nuget: Doka.EntityFrameworkCore.NestedSet.SqlServer, 10.2.0"
                    
#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 Doka.EntityFrameworkCore.NestedSet.SqlServer@10.2.0
                    
#: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=Doka.EntityFrameworkCore.NestedSet.SqlServer&version=10.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Doka.EntityFrameworkCore.NestedSet.SqlServer&version=10.2.0
                    
Install as a Cake Tool

Doka.EntityFrameworkCore.NestedSet.SqlServer

Native SQL Server integration for the shared NestedSet EF hierarchy engine. This adapter owns native SQL, model/index conventions, registry transport, and query translation while the common package owns hierarchy algorithms and transaction/lifecycle coordination.

Install

dotnet package add Doka.EntityFrameworkCore.NestedSet.SqlServer --version 10.2.0

The adapter brings in Doka.EntityFrameworkCore.NestedSet, Doka.NestedSet, and Microsoft.EntityFrameworkCore.SqlServer [10.0.13,11.0.0) transitively. Use one qualified NestedSet version across the application's NestedSet packages. Version 10.2.0 is the stable six-package contract.

The adapter requires exactly the matching common EF kernel version, [10.2.0] for this release. Update all selected NestedSet adapters together.

This release adds common HasTreeRegistryTable(...) configuration and corrects manual-detection/save-recovery behavior. Registration remains in the native provider callback; the default registry schema is unchanged.

The shipping dependency graph explicitly raises System.Security.Cryptography.Pkcs to a minimum of 9.0.21, without an upper bound, for the native SQL Client path. That security floor is a SQL Server adapter dependency, not a dependency of the common kernel. Repository qualification uses PKCS 10.0.14 for .NET 10; applications already using the patched 9.0.21 need no forced update. Native SQL Server qualification requires supported Linux x86-64 hosts; ARM emulation is not the supported qualification environment.

Register

Call UseNestedSets() inside the native provider callback:

using Microsoft.EntityFrameworkCore;
using Doka.EntityFrameworkCore.NestedSet;

services.AddDbContext<ApplicationDbContext>(options => options
    .UseSqlServer(connectionString, sqlServer => sqlServer.UseNestedSets()));

Keep entity configuration through HasNestedSet(...), queries/mutations through context.NestedSet<TEntity>(), and existing application save/transaction rules. No additional hierarchy entity or provider-specific domain model is required. Ordinary EF migrations are the baseline; SafeMigrations is independently optional.

The former options-level DbContextOptionsBuilder.UseNestedSets() overloads are removed. See the upgrade guide, configuration, and support/qualification matrix.

Composition query plans

Public composition operations, such as SelectAncestors(...), SelectSubtrees(...) and WherePathEdges(...), tag their queries with Doka.EntityFrameworkCore.NestedSet composition. The adapter appends OPTION (OPTIMIZE FOR UNKNOWN, MAXDOP 1) to commands carrying that tag only. SQL Server otherwise reuses a plan compiled for the first selection size and can repeat population-sized work for later sources or parallel workers. Ordinary hierarchy reads, mutations and untagged application queries are unchanged. Do not append a second OPTION clause to tagged commands; see SQL Server composition plans.

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. 
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
10.2.0 52 11/3/2026
10.1.0 107 10/30/2026