Microsoft.EntityFrameworkCore.SqlServer.HierarchyId 10.0.7

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 3.6 or higher.

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

Microsoft.EntityFrameworkCore.SqlServer.HierarchyId enables use of hierarchical data for SQL Server and Azure SQL with Entity Framework Core and NetTopologySuite.

Usage

Call UseHierarchyId inside the call to UseSqServer when configuring the SQLite database provider for your DbContext. For example:

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    => options.UseSqlServer(
        "Server=localhost;Database=MyDatabase;Trusted_Connection=True;",
        b => b.HierarchyId());

See Hierarchical Data in the SQL Server EF Core Provider for more information on HierarchyId with EF Core.

Getting started with EF Core

See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.

Feedback

If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.

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 (16)

Showing the top 5 NuGet packages that depend on Microsoft.EntityFrameworkCore.SqlServer.HierarchyId:

Package Downloads
EFCore.BulkExtensions.SqlServer

EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server

EFCore.BulkExtensions.MIT.SqlServer

EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite

EFCore.BulkExtensions.MIT

EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite

EFCore.BulkExtensions.MIT.MySQL

EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite

ErikEJ.EntityFrameworkCore.SqlServer.Dacpac

Enables reverse engineering an EF Core model from a data-tier application package (DACPAC).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0-preview.3.26207.106 111 4/14/2026
11.0.0-preview.2.26159.112 155 3/10/2026
11.0.0-preview.1.26104.118 108 2/10/2026
10.0.7 16,871 4/21/2026
10.0.6 16,298 4/14/2026
10.0.5 56,404 3/12/2026
10.0.4 15,170 3/10/2026
10.0.3 445,764 2/10/2026
10.0.2 54,040 1/13/2026
10.0.1 462,033 12/9/2025
10.0.0 216,735 11/11/2025
9.0.15 779 4/14/2026
9.0.14 3,806 3/10/2026
9.0.13 6,821 2/10/2026
9.0.12 11,255 1/13/2026
9.0.11 54,890 11/11/2025
8.0.26 2,777 4/14/2026
8.0.25 14,899 3/10/2026
8.0.24 25,200 2/10/2026
8.0.23 9,589 1/13/2026
Loading failed