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
Enterprise Library 5.0 Create Database from connection str.
-
- Posts: 1
- Joined: Wed 20 Jul 2011 17:00
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?