NHibernate
Last updated
What is NHibernate?
NHibernate is an open-source Object-Relational Mapping (ORM) framework for .NET. It is a powerful and flexible framework that can greatly simplify working with relational data in .NET. NHibernate is similar to other ORM frameworks such as Entity Framework and RepoDb in that it provides a higher-level abstraction on top of the underlying data access technology (ADO.NET in this case) and allows developers to work with data using domain-specific objects, eliminating the need to write raw SQL statements.
NHibernate uses the concept of "mapping files" which are XML files that define how the classes in the application map to the tables and columns in the database. These mapping files are used to create a conceptual model of the data in the form of classes, and then NHibernate uses this model to generate the SQL statements necessary to interact with the database.
Free resources to learn NHibernate
- Official docsGet Started with NHibernate
- ArticleWhat is Nhibernate?
- ArticleNHibernate - ORM
More in stage 6: Caching
- Caching
- Redis
- Memcached
- Distributed Cache
- Memory Cache
- Entity Framework 2nd Level Cache
- RepoDB
- Dapper
- MVC
- REST
- Minimal APIs
- Razor Pages
- Razor Components
- Middlewares
- Filters and Attributes
- App Settings and Configs
- Entity Framework Core
- Framework Basics
- Code First + Migrations
- Change Tracker API
- Lazy, Eager, Explicit Loading
- Scoped
- Transient
- Singleton
- Scrutor
NHibernate: common questions
Can I learn NHibernate in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain NHibernate in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this NHibernate tutorial for beginners?
It is lesson 27 of 146 in the free ASP.NET Core roadmap, in stage 6, Caching. If you are new to ASP.NET Core, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.