NHibernate 配置增加代码感知
Adding the Schema
- Include the schema in your Project, Solution, or Visual Studios XML Schemas folder on your computer. Should be something similar to
%ProgramFiles%\Microsoft Visual Studio 10.0\Xml\Schemas. - Change the
xmlnsattribute of thehibernate-configurationelement in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories. - Change
hibernate-configurationelementhibernate-configuration-x-factories. - Give the
session-factoryelement a name and create as manysession-factoryelements as you like.

浙公网安备 33010602011771号