Adding the Schema
%ProgramFiles%\Microsoft Visual Studio 10.0\Xml\Schemas. xmlns attribute of the hibernate-configuration element in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories. hibernate-configuration element hibernate-configuration-x-factories. session-factory element a name and create as many session-factory elements as you like.原文:http://www.cnblogs.com/hornet/p/4071958.html