Enterprise Library 5.0 Create Database from connection str.

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
mareich555
Posts: 1
Joined: Wed 20 Jul 2011 17:00

Enterprise Library 5.0 Create Database from connection str.

Post by mareich555 » Wed 20 Jul 2011 17:08

I need to create an Enterprise Library DB instance from a connection string for my PostgreSql databases. With the npgsql drivers I was able to create a new db instance using a simple constructor: new pgSqlDatabase(connection string). I cannot find a similar construct with dotConnect. Is it possible to do this or is there another method for doing this.

Thanks.

Martin Reich

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 22 Jul 2011 15:20

Please add the reference to the %ProgramFiles%\Devart\dotConnect\PostgreSQL\Enterprise Library\NET3.5\Bin\Devart.Data.PostgreSql.EnterpriseLibrary.dll assembly to your project and use the PgSqlDatabase(string connectionString) constructor of the Devart.Data.PostgreSql.EnterpriseLibrary.PgSqlDatabase class. Is that what you mean?

Post Reply