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
xmlns
attribute of thehibernate-configuration
element in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories
. - Change
hibernate-configuration
elementhibernate-configuration-x-factories
. - Give the
session-factory
element a name and create as manysession-factory
elements as you like.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。