concept nhibernate type system in category .net

appears as: NHibernate type system
NHibernate in Action

This is an excerpt from Manning's book NHibernate in Action.

A typical NHibernate property mapping defines a property name, a database column name, and the name of an NHibernate type. It maps a .NET property to a table column. The basic declaration provides many variations and optional settings; for example, it’s often possible to omit the type name. For example, if Description is a property of (.NET) type String, NHibernate uses the NHibernate type String by default (we discuss the NHibernate type system in chapter 7). NHibernate uses reflection to determine the.NET type of the property. Thus, the following mappings are equivalent, as long as they’re on the property Description:

6.1. Understanding the NHibernate type system

We first distinguished between entity and value types back in section 3.6.1. In order to give you a better understanding of the NHibernate type system, we elaborate a little more.