【发布时间】:2013-09-04 03:44:19
【问题描述】:
我是第一次为 NHibernate 设置 Oracle 连接。我已将 Oracle.DataAccess.dll 文件复制到我的 bin 文件夹中。无论我尝试什么,我都会收到同样的错误:
Could not load type >NHibernate.Driver.OracleDataClientDriver. Possible cause: no assembly name specified.
我正在使用以下配置:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory name="DefaultSessionFactory">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property name="connection.driver_class">>NHibernate.Driver.OracleDataClientDriver</property>
<property name="connection.connection_string">Data Source=DB;User ID=USERPassword=****;</property>
<property name="show_sql">true</property>
<mapping assembly="NHibernateExample.DataAccess"/>
</session-factory>
</hibernate-configuration>
我之前只为 SQL Server 设置了 NHibernate。我这里有什么遗漏吗?
【问题讨论】:
标签: nhibernate