Without SSL using NpgsqlConnection
Connection string
This Npgsql connection string can be used for connections to PostgreSQL.
Server=127.0.0.1;Port=5432;Database=myDataBase;Userid=myUsername;
Password=myPassword;Protocol=3;SSL=false;SslMode=Disable;