Enterprise Library 5.0 Create Database from connection str.

Enterprise Library 5.0 Create Database from connection str.

Postby 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
mareich555
 
Posts: 1
Joined: Wed 20 Jul 2011 17:00

Postby 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?
Shalex
Devart Team
 
Posts: 7773
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL