Specifying protocol version using NpgsqlConnection

Connection string

This Npgsql connection string can be used for connections to PostgreSQL.

Server=127.0.0.1;Port=5432;Database=myDataBase;User Id=myUsername;
Password
=myPassword;
Protocol=3;

Valid values for the key Protocol is 2 or 3.