1. xml statement
<Hibernate-mapping xmlns = "urn: nhibernate-mapping-2.2" namespace = "" assembly = "">
Namespace and assembly are required. Otherwise, the system will prompt that the ing file cannot be found.
Set mapping to 2.2 in the new version.
2. Use tinyint to store the bool type
In previous versions, you need to implement an iusertype class, which is no longer required in version 3.x. You can directly set it to tinyint in ing.
3. Attribute-related data dictionary without data update
Public Virtual area {Get; set;} // object class attribute, no data update
<Role-to-one name = "area" class = "area" column = "code" unique = "true" property-ref = "code" insert = "false" update = "false"/>
This configuration can be automatically associated with the region during reading, but this attribute is not involved in database storage operations.