- Learning NHibernate 4
- Suhas Chatekar
- 259字
- 2021-07-16 13:08:45
Important NHibernate terminology
From this chapter onwards, we will be using some terms. These terms have special meanings when used in context of NHibernate or data access layers of applications. It would help to know what these terms mean and how we are going to use them in this chapter and in rest of the book. It is possible that some of these terms are already known to you.
POCO, Plain Old CLR Object. An alternate term for a class in C# which:
- Does not inherit from classes defined in any framework
- Does not implement interfaces defined in any framework
- Does not use any attributes defined in any framework
We will just use the word class most of the time in this book but if I may have to use POCO in a few places, you will know what I mean.
- Entity: A class having an identifier that identifies an instance at least in the entity graph maintained by NHibernate. This may be slightly confusing, but as we progress through the chapter you will know more about NHibernate to understand this clearly. Till that time, whenever I say entity, assume that I am referring to a class/POCO.
- Persistent Class: Any class which NHibernate is able to persist in one or more database tables using the mappings defined.
- Attribute/property: When used in reference to POCO/class, this means getter/setter properties or fields on the class. When used in reference to XML, this would mean usual XML attributes. I may refer to class attributes as properties in some places to avoid confusion.
推薦閱讀
- Python數(shù)據(jù)可視化:基于Bokeh的可視化繪圖
- Pandas Cookbook
- 精通搜索分析
- 快人一步:系統(tǒng)性能提高之道
- Android驅(qū)動開發(fā)權(quán)威指南
- C# and .NET Core Test Driven Development
- 寫給程序員的Python教程
- SignalR:Real-time Application Development(Second Edition)
- .NET 4.0面向?qū)ο缶幊搪劊簯?yīng)用篇
- Visual FoxPro程序設(shè)計(jì)習(xí)題及實(shí)驗(yàn)指導(dǎo)
- C#網(wǎng)絡(luò)編程高級篇之網(wǎng)頁游戲輔助程序設(shè)計(jì)
- JavaScript設(shè)計(jì)模式與開發(fā)實(shí)踐
- LabVIEW數(shù)據(jù)采集(第2版)
- JavaScript全棧開發(fā)
- Serverless從入門到進(jìn)階:架構(gòu)、原理與實(shí)踐