DZone
Table of Contents
- Introduction
- NuGet package
- Create Entities
- Person Entity
- Task Entity
- Create Entities
- Create Mappings
- PersonMap
- TaskMap
- PersonService
- Conclusion
Introduction
NHibernate is an object-relational mapping (ORM) framework that allows you to map the object-oriented domain model with the tables in a relational Database. To realize the mapping, we have to write XML mapping files (.hbm.xml files), and to make it easier, here comes Fluent NHibernate as an abstraction layer to do it in C# rather than XML.
Databases supported by NHibernate are:
Source: DZone