NHibernate配置引发的异常
生活随笔
收集整理的這篇文章主要介紹了
NHibernate配置引发的异常
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
NHibernate.Cfg.Configuration”的類型初始值設定項引發異常
.添加引用 log4net.dll? Iesi.Collections.dll NHibernate.dll
?
?
?
關于NHibernate異常The following types may not be used as proxies?
?
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns=" urn:nhibernate-mapping-2.2">
<class name="Model.Customer, Model" table="Customer" lazy="false">
……
……
</class>
</hibernate-mapping>
1.未能找到元素“urn:nhibernate-mapping-2.0:hibernate-mapping”的架構信息
把 原來的urn:nhibernate-mapping-2.0改為urn:nhibernate-mapping-2.2
2 .在class中添加lazy=false.
?
?
轉載于:https://www.cnblogs.com/Magicam/archive/2010/02/08/1665978.html
總結
以上是生活随笔為你收集整理的NHibernate配置引发的异常的全部內容,希望文章能夠幫你解決所遇到的問題。