官术网_书友最值得收藏!

  • 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.
主站蜘蛛池模板: 治多县| 常德市| 平顺县| 顺义区| 鄯善县| 稷山县| 荥阳市| 军事| 青川县| 青岛市| 屏东县| 河北省| 交口县| 丰顺县| 盘锦市| 灵宝市| 云梦县| 乌拉特前旗| 龙岩市| 宣恩县| 丁青县| 垫江县| 民乐县| 克山县| 秦皇岛市| 三原县| 饶阳县| 鹤峰县| 揭阳市| 贡山| 固原市| 永善县| 托克逊县| 凌源市| 南安市| 富顺县| 嘉义市| 清苑县| 泰州市| 四子王旗| 定日县|