Thread View: alt.pl.comp.lang.csharp
1 messages
1 total messages
Started by Macko
Thu, 09 Jun 2011 18:16
NHibernate z Oracle
Author: Macko
Date: Thu, 09 Jun 2011 18:16
Date: Thu, 09 Jun 2011 18:16
44 lines
2599 bytes
2599 bytes
Cze,
właśnie walczę ze zmuszeniem NHibernate'a (v3.2) do działania z
Oraclem (v11),
ale coĹ› nie bangla mi. Przy uruchomieniu dostajÄ™ eksepszona:
<exception>
The type initializer for 'Oracle.DataAccess.Client.OracleConnection'
threw an exception.
The provider is not compatible with the version of Oracle client
</exception>
mĂłj app.config
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="NHibernate.Test">
<property name="dialect">NHibernate.Dialect.Oracle10gDialect</
property>
<property
name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</
property>
<property name="connection.connection_string">Data
Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = bla.com)(PORT
= 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME =
DEV)));User Id=user1;Password=xxx;</property>
<property name="adonet.batch_size">20</property>
<property name="show_sql">true</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>
<mapping assembly="NH.Domain"/>
</session-factory>
</hibernate-configuration>
Do katalog aplikacji wrzuciłem Oracle.DataAccess.dll (v4.112).
Ma ktoś jakiś pomysł jak ten tandem zmusić do działania?
--
Pozdro,
Maćko
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads