A mature, open-source object-relational mapper for the .NET framework, enabling .NET applications to interact with databases using object-oriented paradigms.
NHibernate is an open-source object-relational mapper (ORM) for the .NET framework that maps .NET objects to relational database tables. It enables developers to interact with databases using object-oriented code instead of writing SQL queries manually, simplifying data access and persistence in .NET applications. The project is mature, fully featured, and has been used in thousands of production projects.
.NET developers building applications that require complex data persistence, especially those who prefer ORM tools over raw ADO.NET or seek an alternative to Entity Framework. It's suitable for enterprise applications, web services, and desktop applications with substantial database interactions.
Developers choose NHibernate for its maturity, flexibility, and comprehensive feature set, including lazy loading, caching, and transaction management. It offers fine-grained control over database interactions and supports a wide range of databases, making it a robust choice for complex or legacy .NET projects where Entity Framework might be limiting.
NHibernate Object Relational Mapper
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Used in thousands of projects over many years, offering a stable and reliable ORM solution, as noted in the README's description of being 'fully-featured' and 'actively developed'.
Includes lazy loading, caching support, and transaction management, providing robust tools for optimizing performance and ensuring data integrity, as highlighted in the Key Features.
Supports multiple database systems through configurable dialects, allowing easy switching between databases without major code changes, per the Cross-Database Compatibility feature.
Enables type-safe, compile-time checked queries via a LINQ provider, reducing errors and improving developer productivity, as specified in the Key Features.
Requires verbose setup with XML mapping files or fluent configuration, which can be error-prone and time-consuming compared to more convention-based ORMs like Entity Framework.
Features like lazy loading and caching, while powerful, can lead to unintended performance issues such as N+1 query problems if misconfigured or misunderstood.
The README directs users to external resources like nhibernate.info, which may have outdated or scattered documentation, making onboarding and troubleshooting more difficult.
nhibernate-core is an open-source alternative to the following products: