NHibernate 5.6.0
Prefix Reserveddotnet add package NHibernate --version 5.6.0
NuGet\Install-Package NHibernate -Version 5.6.0
<PackageReference Include="NHibernate" Version="5.6.0" />
<PackageVersion Include="NHibernate" Version="5.6.0" />
<PackageReference Include="NHibernate" />
paket add NHibernate --version 5.6.0
#r "nuget: NHibernate, 5.6.0"
#:package NHibernate@5.6.0
#addin nuget:?package=NHibernate&version=5.6.0
#tool nuget:?package=NHibernate&version=5.6.0
Welcome to NHibernate
NHibernate is a mature, open source object-relational mapper for the .NET framework. It is actively developed, fully featured and used in thousands of successful projects.
The NHibernate community website - https://nhibernate.info - has a range of resources to help you get started, including howtos, blogs and reference documentation.
Latest Release Version
The quickest way to get the latest release of NHibernate is to add it to your project using NuGet (https://nuget.org/List/Packages/NHibernate).
Alternatively binaries are available from SourceForge at http://sourceforge.net/projects/nhibernate.
You are encouraged to review the release notes (releasenotes.txt), particularly when upgrading to a later version. The release notes will generally document any breaking changes.
Nightly Development Builds
The quickest way to get the latest development build of NHibernate is to add it to your project using NuGet from Cloudsmith feed (https://cloudsmith.io/~nhibernate/repos/nhibernate-core/packages/).
In order to make life a little bit easier you can register the package source in the NuGet.Config file in the top folder of your project, similar to the following.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="NHibernateDevBuilds" value="https://nuget.cloudsmith.io/nhibernate/nhibernate-core/v3/index.json" />
  </packageSources>
</configuration>
Package repository hosting is graciously provided by Cloudsmith. Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that enables your organization to create, store and share packages in any format, to any place, with total confidence.
Community Forums
There are two official NHibernate community forums:
- NHibernate Users - a forum for users to find help using NHibernate
- NHibernate Development - a forum for the developers of NHibernate
Bug Reports
If you find any bugs, please report them using the GitHub issue tracker. A test-case that demonstrates the issue is usually required. Instructions on providing a test-case can be found in contributing guidelines or here.
Licenses
- This software is distributed under the terms of the Free Software Foundation Lesser GNU Public License (LGPL), version 2.1 (see LICENSE.txt).
- The documentation for this software is distributed under the terms of the Free Software Foundation GNU Free Documentation License (GNU FDL), version 1.1 (see doc/LICENSE.txt).
Credits
Many thanks to the following individuals, organisations and projects whose work is so important to the success of NHibernate (in no particular order):
- NUnit - unit-testing
- Nant - build automation
- CodeBetter - TeamCity continuous integration and build management server hosting
- GitHub and SourceForge - source code hosting
- Atlassian - JIRA bug tracker licence and hosting
- Log4net - logging, by the Apache Software Foundation
- JetBrains - ReSharper licences for NHibernate developers
- LinFu - proxy implementation (Philip Laureano)
- Iesi.Collections - source code taken from an article written by Jason Smith
- Relinq - Linq provider for NHibernate
- AsyncGenerator - Roslyn based async C# code generator by @maca88
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. | 
| .NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. | 
| .NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen40 was computed. tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
- 
                                                    .NETCoreApp 2.0- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
- System.Configuration.ConfigurationManager (>= 4.7.0)
 
- 
                                                    .NETFramework 4.6.1- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
 
- 
                                                    .NETFramework 4.8- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
 
- 
                                                    .NETStandard 2.0- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Microsoft.CSharp (>= 4.7.0)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
- System.Configuration.ConfigurationManager (>= 4.7.0)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
 
- 
                                                    .NETStandard 2.1- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Microsoft.CSharp (>= 4.7.0)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
- System.Configuration.ConfigurationManager (>= 4.7.0)
 
- 
                                                    net6.0- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
- System.Configuration.ConfigurationManager (>= 6.0.0)
 
- 
                                                    net8.0- Antlr3.Runtime (>= 3.5.1 && < 4.0.0)
- Iesi.Collections (>= 4.1.1)
- Remotion.Linq (>= 2.2.0 && < 3.0.0)
- Remotion.Linq.EagerFetching (>= 2.2.0 && < 3.0.0)
- System.Configuration.ConfigurationManager (>= 8.0.0)
 
NuGet packages (571)
Showing the top 5 NuGet packages that depend on NHibernate:
| Package | Downloads | 
|---|---|
| FluentNHibernate Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. | |
| NHibernate.Cache.DynamicCacheBuster Automatically bust your NHibernate cache when the schema changes. | |
| NServiceBus.NHibernate NHibernate integration for NServiceBus | |
| NHibernate.Caches.Common Common types of NHibernate.Caches providers. | |
| NHibernate.Caches.SysCache Cache provider for NHibernate using ASP.NET Cache object. | 
GitHub repositories (51)
Showing the top 20 popular GitHub repositories that depend on NHibernate:
| Repository | Stars | 
|---|---|
| DapperLib/Dapper 
                                                            Dapper - a simple object mapper for .Net
                                                         | |
| aspnetboilerplate/aspnetboilerplate 
                                                            ASP.NET Boilerplate - Web Application Framework
                                                         | |
| MassTransit/MassTransit 
                                                            Distributed Application Framework for .NET
                                                         | |
| protobuf-net/protobuf-net 
                                                            Protocol Buffers library for idiomatic .NET 
                                                         | |
| OrchardCMS/Orchard 
                                                            Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
                                                         | |
| mikependon/RepoDB 
                                                            A hybrid ORM library for .NET.
                                                         | |
| zzzprojects/System.Linq.Dynamic.Core 
                                                            The .NET Standard / .NET Core version from the System Linq Dynamic functionality.
                                                         | |
| nhibernate/fluent-nhibernate 
                                                            Fluent NHibernate!
                                                         | |
| security-code-scan/security-code-scan 
                                                            Vulnerability Patterns Detector for C# and VB.NET
                                                         | |
| chucknorris/roundhouse 
                                                            RoundhousE is a Database Migration Utility for .NET using sql files and versioning based on source control
                                                         | |
| spring-projects/spring-net 
                                                            Spring Framework for .NET
                                                         | |
| MassTransit/Automatonymous 
                                                            A state machine library for .Net - 100% code - No doodleware
                                                         | |
| brockallen/BrockAllen.MembershipReboot 
                                                            MembershipReboot is a user identity management and authentication library.
                                                         | |
| Alachisoft/NCache 
                                                            NCache: Highly Scalable Distributed Cache for .NET
                                                         | |
| vkhorikov/DddInAction 
                                                            Source code for the DDD in Practice Pluralsight course
                                                         | |
| ShokoAnime/ShokoServer 
                                                            Repository for Shoko Server.
                                                         | |
| vkhorikov/CqrsInPractice 
                                                            Source code for the CQRS in Practice Pluralsight course
                                                         | |
| DataDog/dd-trace-dotnet 
                                                            .NET Client Library for Datadog APM
                                                         | |
| zkweb-framework/ZKWeb 
                                                            A flexible web framework supports .Net Framework and .Net Core
                                                         | |
| VocaDB/vocadb 
                                                            VocaDB is a Vocaloid Database with translated artists, albums, music videos and more.
                                                         | 
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.6.0 | 28,876 | 10/7/2025 | |
| 5.5.3 | 104,474 | 8/23/2025 | |
| 5.5.2 | 8,129,852 | 7/6/2024 | |
| 5.5.1 | 405,049 | 3/28/2024 | |
| 5.5.0 | 1,229,931 | 12/24/2023 | |
| 5.4.10 | 1,902 | 8/22/2025 | |
| 5.4.9 | 1,923,295 | 7/6/2024 | |
| 5.4.8 | 2,315 | 3/26/2024 | |
| 5.4.7 | 184,182 | 11/30/2023 | |
| 5.4.6 | 697,847 | 8/27/2023 | |
| 5.4.5 | 42,475 | 8/13/2023 | |
| 5.4.4 | 143,784 | 7/30/2023 | |
| 5.4.3 | 172,965 | 7/4/2023 | |
| 5.4.2 | 624,612 | 4/5/2023 | |
| 5.4.1 | 608,291 | 2/8/2023 | |
| 5.4.0 | 1,043,603 | 11/20/2022 | |
| 5.3.20 | 56,880 | 11/29/2023 | |
| 5.3.19 | 4,378 | 8/13/2023 | |
| 5.3.18 | 7,342 | 7/2/2023 | |
| 5.3.17 | 51,760 | 6/12/2023 | |
| 5.3.16 | 3,909 | 4/2/2023 | |
| 5.3.15 | 13,160 | 1/29/2023 | |
| 5.3.14 | 524,001 | 10/16/2022 | |
| 5.3.13 | 601,013 | 9/1/2022 | |
| 5.3.12 | 2,299,026 | 5/1/2022 | |
| 5.3.11 | 799,829 | 2/20/2022 | |
| 5.3.10 | 1,920,911 | 9/26/2021 | |
| 5.3.9 | 578,026 | 7/4/2021 | |
| 5.3.8 | 990,250 | 4/5/2021 | |
| 5.3.7 | 141,436 | 3/21/2021 | |
| 5.3.6 | 306,096 | 2/22/2021 | |
| 5.3.5 | 935,550 | 11/15/2020 | |
| 5.3.4 | 131,769 | 11/1/2020 | |
| 5.3.3 | 3,897,902 | 9/13/2020 | |
| 5.3.2 | 1,326,433 | 8/9/2020 | |
| 5.3.1 | 82,672 | 7/26/2020 | |
| 5.3.0 | 236,081 | 7/19/2020 | |
| 5.2.7 | 3,108,229 | 1/19/2020 | |
| 5.2.6 | 1,056,663 | 9/8/2019 | |
| 5.2.5 | 1,577,806 | 3/31/2019 | |
| 5.2.4 | 176,802 | 3/1/2019 | |
| 5.2.3 | 318,904 | 1/14/2019 | |
| 5.2.2 | 126,040 | 1/6/2019 | |
| 5.2.1 | 259,681 | 12/8/2018 | |
| 5.2.0 | 2,174,727 | 12/3/2018 | |
| 5.1.7 | 62,687 | 1/19/2020 | |
| 5.1.6 | 16,724 | 9/14/2019 | |
| 5.1.5 | 139,766 | 3/24/2019 | |
| 5.1.4 | 12,651 | 1/6/2019 | |
| 5.1.3 | 2,036,947 | 6/10/2018 | |
| 5.1.2 | 227,990 | 5/9/2018 | |
| 5.1.1 | 2,108,070 | 4/10/2018 | |
| 5.1.0 | 777,734 | 3/17/2018 | |
| 5.0.8 | 59,292 | 9/14/2019 | |
| 5.0.7 | 8,270 | 3/24/2019 | |
| 5.0.6 | 10,651 | 5/9/2018 | |
| 5.0.5 | 8,884 | 4/18/2018 | |
| 5.0.4 | 8,959 | 4/12/2018 | |
| 5.0.3 | 348,716 | 11/30/2017 | |
| 5.0.1 | 70,516 | 11/13/2017 | |
| 5.0.0 | 148,415 | 10/10/2017 | |
| 4.1.2.4000 | 699,418 | 5/4/2018 | |
| 4.1.1.4000 | 1,612,193 | 2/2/2017 | |
| 4.0.4.4000 | 2,737,878 | 8/17/2015 | |
| 4.0.3.4000 | 968,734 | 1/20/2015 | |
| 4.0.2.4000 | 467,173 | 11/15/2014 | |
| 4.0.1.4000 | 692,245 | 9/21/2014 | |
| 4.0.0.4000 | 2,293,568 | 8/17/2014 | |
| 3.4.1.4000 | 267,605 | 8/17/2015 | |
| 3.4.0.4000 | 336,538 | 8/17/2014 | |
| 3.3.5.4000 | 441,544 | 8/17/2015 | |
| 3.3.4.4000 | 280,740 | 8/7/2014 | |
| 3.3.3.4001 | 2,321,862 | 8/8/2013 | |
| 3.3.3.4000 | 817,215 | 3/17/2013 | |
| 3.3.2.4000 | 638,012 | 10/22/2012 | |
| 3.3.1.4000 | 1,412,099 | 6/12/2012 | |
| 3.3.0.4000 | 181,983 | 4/21/2012 | |
| 3.2.0.4000 | 610,220 | 7/30/2011 | |
| 3.1.0.4000 | 581,224 | 5/9/2011 | |
| 3.0.0.4000 | 201,916 | 3/12/2011 | |
| 2.1.2.4000 | 261,626 | 1/7/2011 |