# NHibernate

> The object-relational mapper for .NET

Source: https://talira.ai/catalog/nhibernate-gfnh66tq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / dotnet](https://talira.ai/categories/languages/dotnet)
- Licence: LGPL-2.1-only[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [NHibernate](https://talira.ai/orgs/nhibernate.md)

NHibernate is a mature, open source object-relational mapper for .NET. It maps ordinary C# or VB.NET classes to relational tables with no special base classes or attributes, with full support for inheritance, components and enums, generates database tables from your domain model, works with all the popular relational databases and handles complex legacy schemas. Plugins add full-text search, distributed caching and validation.

## Links

- Website: https://nhibernate.info/
- GitHub: https://github.com/nhibernate/nhibernate-core
- Docs: https://nhibernate.info/doc/

## Problems it solves

- map my .NET domain classes to a relational database without base classes or attributes
- an ORM for a legacy database schema in a C# application
- a mature alternative to Entity Framework for .NET

## Features

- maps plain C# and VB.NET classes, with inheritance, components and enums
- generates database tables from the domain model
- works with the popular relational databases and complex legacy schemas
- plugins for full-text search, cluster caching and validation
- nightly builds on a Cloudsmith NuGet feed

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.71, adoption 0.67, momentum 0.33, community 0.95, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 16 commits in the last 90 days
- latest release 5.7.1 29 days ago
- 2.2k GitHub stars
- 234 contributors
- has a company behind it

## Alternatives

- [Entity Framework Core](https://talira.ai/catalog/entity-framework-core-g9v76f6s.md): A lightweight, extensible, open source and cross-platform version of Entity Framework
- [Entity Framework 6](https://talira.ai/catalog/entity-framework-6-45218x7z.md): A tried and tested object-relational mapper for .NET
- [SQLite-net](https://talira.ai/catalog/sqlite-net-avpe871v.md): A small SQLite client and ORM for .NET
- [SqlSugar](https://talira.ai/catalog/sqlsugar-w25wp5p4.md): .NET ORM for many databases, including China's domestic ones such as Dameng and KingbaseES
- [FreeSql](https://talira.ai/catalog/freesql-04nn0ey7.md): .NET ORM with CodeFirst, DbFirst and support for many databases, including AOT builds
- [Dapper](https://talira.ai/catalog/dapper-jfex180x.md): A simple, fast object mapper for .NET

## Sources

[^1]: https://github.com/nhibernate/nhibernate-core/blob/master/LICENSE.txt (checked 28 Nov 2026)
[^2]: https://www.nuget.org/packages/NHibernate (checked 28 Nov 2026)
