Generate connection strings by specifying the connection information in the properties of the NpgsqlConnectionStringBuilder object.
Example
Code examples for applications
using Npgsql; NpgsqlConnectionStringBuilder sb = new NpgsqlConnectionStringBuilder(); sb.Host = "sv1"; sb.Port = 26500; sb.Database = "mydb"; sb.UserName = "myuser"; sb.Password = "myuser01"; sb.Timeout = 20; sb.CommandTimeout = 20; NpgsqlConnection conn = new NpgsqlConnection(sb.ConnectionString);
Refer to "4.3.4 Connection String" for information on database connection strings.