首页 > Web开发 > 详细

NHibernate 配置增加代码感知

时间:2014-11-03 20:36:40      阅读:295      评论:0      收藏:0      [点我收藏+]

Adding the Schema

  1. 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.
  2. Change the xmlns attribute of the hibernate-configuration element in your .cfg.xml tourn:nhibernate-configuration-2.2-x-factories.
  3. Change hibernate-configuration element hibernate-configuration-x-factories.
  4. Give the session-factory element a name and create as many session-factory elements as you like.

NHibernate 配置增加代码感知

原文:http://www.cnblogs.com/hornet/p/4071958.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!