码迷,mamicode.com
首页 > Web开发 > 详细

NHibernate 配置增加代码感知

时间:2014-11-03 20:37:39      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:io   ar   os   strong   on   代码   ad   as   tt   

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 配置增加代码感知

标签:io   ar   os   strong   on   代码   ad   as   tt   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!