Connecting to PostgreSQL

I use Npgsql to deal with PostgreSQL using C#. In order to connect to the database I wrote: NpgsqlConnection conn = new NpgsqlConnection(connstring); conn.Open(); Open() is a void method. It doesn’t …