NHibernate dotConnect - configuration
Posted: Tue 20 Sep 2016 12:43
Hi
I would like to test (trial version) dotConnect for PostgreSQL in my WPF app with NHibernate. I've added dll to references -> Devart.Data.PostgreSql and added driver_class to hibernate_pg.cfg.xml:
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory>
<property name="connection.driver_class">PostgresDriver.DbDriver.DevartPgDriver, Devart.Data.PostgreSql</property>
<property name="connection.connection_string_name">
[...]
</property>
<property name="show_sql">true</property>
<property name="dialect">NHibernate.Dialect.PostgreSQL82Dialect</property>
</session-factory>
</hibernate-configuration>
What else should i do to connect via nhibernate to postgresql using dotConnect for PostgreSQL - Error is:
"Could not create the driver from PostgresDriver.DbDriver.DevartPgDriver, Devart.Data.PostgreSql."
I would like to test (trial version) dotConnect for PostgreSQL in my WPF app with NHibernate. I've added dll to references -> Devart.Data.PostgreSql and added driver_class to hibernate_pg.cfg.xml:
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory>
<property name="connection.driver_class">PostgresDriver.DbDriver.DevartPgDriver, Devart.Data.PostgreSql</property>
<property name="connection.connection_string_name">
[...]
</property>
<property name="show_sql">true</property>
<property name="dialect">NHibernate.Dialect.PostgreSQL82Dialect</property>
</session-factory>
</hibernate-configuration>
What else should i do to connect via nhibernate to postgresql using dotConnect for PostgreSQL - Error is:
"Could not create the driver from PostgresDriver.DbDriver.DevartPgDriver, Devart.Data.PostgreSql."