- Learning NHibernate 4
- Suhas Chatekar
- 230字
- 2021-07-16 13:08:45
Chapter 3. Let's Tell NHibernate About Our Database
You must be excited to start your NHibernate learning tour. Well, we are just about to do that. In this chapter, we are going to talk about declaring mappings for your domain model. You declare mappings to tell NHibernate how classes in your domain model match to database tables. If you have built your database to suit to the domain model then mappings would look very simple. But if database and domain models are not compatible with each other, then mappings start getting complex. Having a thorough knowledge of mappings would help in such situations. There are multiple ways of declaring mappings, from XML-based ones to code-based ones. We will cover three most widely used methods, namely, XML mappings, mapping by code, and fluent mappings.
Mapping is the most important concept in NHibernate. The way NHibernate interacts with database largely depends on how mappings are written. In this chapter, we will cover the basics of mapping. As we go deeper into the other NHibernate features in the upcoming chapters, we would revisit mappings to see how slightly tweaking a mapping can bring about big changes in the way NHibernate interacts with your database. This chapter should give you a basic understanding of how to declare mappings and make you ready for taking the plunge into the more advanced NHibernate topics.
- Getting Started with Citrix XenApp? 7.6
- Computer Vision for the Web
- 程序員面試筆試寶典
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- MATLAB 2020 從入門到精通
- PhoneGap Mobile Application Development Cookbook
- GeoServer Beginner's Guide(Second Edition)
- Learn React with TypeScript 3
- Java編程從入門到精通
- OpenMP核心技術指南
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 編程的原則:改善代碼質量的101個方法
- Serverless工程實踐:從入門到進階
- MATLAB從入門到精通
- Slick2D Game Development