[postgresql] How do I connect C# with Postgres?

How do I Connect C# with Postgres? I download the npgsql data provider but couldn't make it work. Are there more examples than the ones in the Postgres site?

Cheers,

This question is related to postgresql c#-3.0

The answer is


You want the NPGSQL library. Your only other alternative is ODBC.


If you want an recent copy of npgsql, then go here

http://www.npgsql.org/

This can be installed via package manager console as

PM> Install-Package Npgsql