Microsoft.EntityFrameworkCore.SqlServer.HierarchyId 8.0.4

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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 8.0.4
NuGet\Install-Package Microsoft.EntityFrameworkCore.SqlServer.HierarchyId -Version 8.0.4
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="8.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.EntityFrameworkCore.SqlServer.HierarchyId --version 8.0.4
#r "nuget: Microsoft.EntityFrameworkCore.SqlServer.HierarchyId, 8.0.4"
#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.
// Install Microsoft.EntityFrameworkCore.SqlServer.HierarchyId as a Cake Addin
#addin nuget:?package=Microsoft.EntityFrameworkCore.SqlServer.HierarchyId&version=8.0.4

// Install Microsoft.EntityFrameworkCore.SqlServer.HierarchyId as a Cake Tool
#tool nuget:?package=Microsoft.EntityFrameworkCore.SqlServer.HierarchyId&version=8.0.4

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 net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

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

Package Downloads
EFCore.BulkExtensions

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

EFCore.BulkExtensions.SqlServer

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

EFCore.BulkExtensions.MySql

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

EFCore.BulkExtensions.MIT.SqlServer

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

Youshow.Ace.Data

数据模块

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on Microsoft.EntityFrameworkCore.SqlServer.HierarchyId:

Repository Stars
borisdj/EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite
ErikEJ/EFCorePowerTools
Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
sjh37/EntityFramework-Reverse-POCO-Code-First-Generator
EntityFramework Reverse POCO Code First Generator - Beautifully generated code that is fully customisable. This generator creates code as if you reverse engineered a database and lovingly created the code by hand. It is free to academics (you need a .edu or a .ac email address), not free for commercial use. Obtain your licence from
Version Downloads Last updated
9.0.0-preview.3.24172.4 70 4/11/2024
9.0.0-preview.2.24128.4 162 3/12/2024
9.0.0-preview.1.24081.2 221 2/13/2024
8.0.4 6,156 4/9/2024
8.0.3 18,897 3/12/2024
8.0.2 197,106 2/13/2024
8.0.1 22,150 1/9/2024
8.0.0 516,668 11/14/2023
8.0.0-rc.2.23480.1 3,405 10/10/2023
8.0.0-rc.1.23419.6 29,738 9/12/2023
8.0.0-preview.7.23375.4 2,500 8/8/2023
8.0.0-preview.6.23329.4 1,879 7/11/2023
8.0.0-preview.5.23280.1 3,327 6/13/2023
8.0.0-preview.4.23259.3 2,156 5/16/2023
8.0.0-preview.3.23174.2 194 4/11/2023
8.0.0-preview.2.23128.3 416 3/14/2023