dotConnect for PostgreSQL (former Core Labs PostgreSQLDirect)
This .NET Framework Class Library is provided by Devart.
Add a reference to the assembly Devart.Data.PostgreSql and include the Devart.Data.PostgreSql namespace. Instantiate a new PgSqlConnection connection object. Set the connection string and open the connection.
VB.NET code sample
Imports Devart.Data.PostgreSql Dim myConnection As PgSqlConnection = New PgSqlConnection() myConnection.ConnectionString = myConnectionString myConnection.Open() ' execute queries, etc myConnection.Close()
C# code sample
using Devart.Data.PostgreSql; PgSqlConnection myConnection = new PgSqlConnection(); myConnection.ConnectionString = myConnectionString; myConnection.Open(); // execute queries, etc myConnection.Close();
dotConnect for PostgreSQL, formerly known as PostgreSQLDirect .NET, is an enhanced data provider for PostgreSQL that builds on ADO.NET technology to present a complete solution for developing PostgreSQL-based database applications.
More info about this class library can be found at the Devart product page.
This .NET Framework Class Library, dotConnect for PostgreSQL (former Core Labs PostgreSQLDirect), can be downloaded here.
The dotConnect for PostgreSQL (former Core Labs PostgreSQLDirect) class library can be used to connect to the following data sources by using the following connection string references: