NHibernate dotConnect - configuration

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Posts: 1
Joined: Tue 20 Sep 2016 12:36

NHibernate dotConnect - configuration

Post by lukaszg » Tue 20 Sep 2016 12:43


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" >
<property name="connection.driver_class">PostgresDriver.DbDriver.DevartPgDriver, Devart.Data.PostgreSql</property>
<property name="connection.connection_string_name">
<property name="show_sql">true</property>
<property name="dialect">NHibernate.Dialect.PostgreSQL82Dialect</property>

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."

Post Reply