2009-07-30 120 views
1

我正在使用一個oracle數據庫,所以定義的方言爲Oracle9Dialect。 但它拋出錯誤:nhibernate方言錯誤:似乎是一個錯誤

「 NHibernate.Dialect Oracle9Dialect可能 原因未能加載類型:未指定組件名稱。」

我只是將方言改爲MsSql2000Dialect而不更改 driver_class,它的工作原理。但是,在這種情況下,我不能使用oracle spesific 的功能..

有什麼建議嗎?

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > 
       <session-factory name="NHibernate.Test"> 
         <property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</ property> 
         <property name="connection.connection_string"> 
           User ID=hr;Password=hr;Data Source=192.168.189.4/orcl 
         </property> 
         <property name="adonet.batch_size">10</property> 
         <property name="show_sql">false</property> 
         <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> 
         <property name="use_outer_join">true</property> 
         <property name="command_timeout">60</property> 
         <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> 
         <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> 
         <mapping assembly="CoreHR" /> 
       </session-factory> 
     </hibernate-configuration> 

回答

3

在NHibernate 2.1中不再有一個名爲NHibernate.Dialect.Oracle9Dialect的類。該課程現在名爲NHibernate.Dialect.Oracle9iDialect

相關問題