Page 1 of 1

Enterprise Library 5.0 Create Database from connection str.

Posted: Wed 20 Jul 2011 17:08
by mareich555
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

Posted: Fri 22 Jul 2011 15:20
by Shalex
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?