We use NHibernate as an ermaPing solution in the project. Currently NHibernate released a version 0.300, you can see: nhibernate.sourceforge.net; NHIBERNATE currently does not have an automatic configuration generation tool, you have a generation of configuration files that are very annoying, Through research, a configuration generation tool is developed. NHibernateAttribute namespace references in their own projects, the control achieved: NHibernateClass, NHibernateID, NHibernateProperty, NHibernateOneToOne, NHibernateOneToMany, NHibernateManyToOne, NHibernateManyToMany and other custom attribute class, a class is automatically generated and configured according to a certain type, which can be Automatically generate profiles. The generated configuration file is as follows: XML Version = "1.0" encoding = "UTF-8"?>