This section explains how to connect to a database.
Using NpgsqlConnection
Using NpgsqlConnectionStringBuilder
Using the ProviderFactory Class