talira

NHibernate

The object-relational mapper for .NET

open sourceLGPL-2.1-onlyfree

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.

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

Alternatives

The same job

These do what NHibernate does.

  1. Entity Framework Core A lightweight, extensible, open source and cross-platform version of Entity Framework
  2. Entity Framework 6 A tried and tested object-relational mapper for .NET
  3. SQLite-net A small SQLite client and ORM for .NET
  4. SqlSugar .NET ORM for many databases, including China's domestic ones such as Dameng and KingbaseES
  5. FreeSql .NET ORM with CodeFirst, DbFirst and support for many databases, including AOT builds
  6. Dapper A simple, fast object mapper for .NET

Compare NHibernate with the top 3