I registered on the site now, and it seems that at the moment I'm no longer allowed to leave comments, so I will just send the code again in a new answer: D
To create a configuration and factory: Configuration config = new Configuration (); config.AddAssembly ("MyLib.Data.NH"); ISessionFactory factory = config.BuildSessionFactory ();
I also changed the configuration now to use (which should be available) Oracle10gDialect (although I tried 9i without success).
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory name="NHibernate.Test"> <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> <property name="connection.connection_string"> User ID=user;Password=password;Data Source=db </property> <property name="show_sql">false</property> <property name="dialect">NHibernate.Dialect.Oracle10gDialect</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> </session-factory> </hibernate-configuration>
Ronald
source share