dotConnect for PostgreSQL (former Core Labs PostgreSQLDirect)
This .NET Framework Class Library is provided by Devart.
Coding
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
C# code sample
VB.NET code sample
Imports Devart.Data.PostgreSql
Dim myConnection As PgSqlConnection = New PgSqlConnection()
myConnection.ConnectionString = myConnectionString
myConnection.Open()
' execute queries, etc
myConnection.Close()
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();
PgSqlConnection myConnection = new PgSqlConnection();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
// execute queries, etc
myConnection.Close();
Description
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.
Download
.NET Framework Class Library (dotConnect for PostgreSQL (former Core Labs PostgreSQLDirect)) can be downloaded here.
Connection Strings
Additional info or comments on this class library? Want to submit content?