Doka.EntityFrameworkCore.NestedSet.MySql
10.2.0
dotnet add package Doka.EntityFrameworkCore.NestedSet.MySql --version 10.2.0
NuGet\Install-Package Doka.EntityFrameworkCore.NestedSet.MySql -Version 10.2.0
<PackageReference Include="Doka.EntityFrameworkCore.NestedSet.MySql" Version="10.2.0" />
<PackageVersion Include="Doka.EntityFrameworkCore.NestedSet.MySql" Version="10.2.0" />
<PackageReference Include="Doka.EntityFrameworkCore.NestedSet.MySql" />
paket add Doka.EntityFrameworkCore.NestedSet.MySql --version 10.2.0
#r "nuget: Doka.EntityFrameworkCore.NestedSet.MySql, 10.2.0"
#:package Doka.EntityFrameworkCore.NestedSet.MySql@10.2.0
#addin nuget:?package=Doka.EntityFrameworkCore.NestedSet.MySql&version=10.2.0
#tool nuget:?package=Doka.EntityFrameworkCore.NestedSet.MySql&version=10.2.0
Doka.EntityFrameworkCore.NestedSet.MySql
Native MySQL and MariaDB 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.MySql --version 10.2.0
The adapter brings in Doka.EntityFrameworkCore.NestedSet, Doka.NestedSet,
and Doka.EntityFrameworkCore.MySql [10.6.3,10.7.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 adapter binds Doka's public engine, source-binding, and ordered-join APIs
directly. Doka 10.6.3 also requires EF Relational below 10.1.0; intersect
that bound with the common kernel's [10.0.12,11.0.0) range. MySQL and MariaDB
share this package; Pomelo is outside the supported contract.
Register
Call UseNestedSets() inside the native provider callback:
using Microsoft.EntityFrameworkCore;
using Doka.EntityFrameworkCore.MySql;
using Doka.EntityFrameworkCore.NestedSet;
var serverVersion = MySqlServerVersion.MariaDb(new Version(11, 8, 0));
services.AddDbContext<ApplicationDbContext>(options => options
.UseMySql(connectionString, serverVersion, mysql => mysql.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.
| 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
- Doka.EntityFrameworkCore.MySql (>= 10.6.3 && < 10.7.0)
- Doka.EntityFrameworkCore.NestedSet (= 10.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.