Prerequisites

To create the Npgsql applications I describe in this chapter, you'll need a copy of Visual Studio .NET (preferably, Visual Studio 2003 or later) and you must install the Visual Basic component. You'll also need a copy of the Npgsql package (which you can find at gborg.postgresql.org or www.pgfoundry.org).

To install Npgsql, open the Npgsql-version.zip archive and extract all files into a permanent home. (I recommend saving the archive files in your Desktop folder so you can find them easily—you'll need to refer to them often.)

Next, add the Npgsql.dll and Mono.Security.Protocol.Tls.dll files to the .NET global assembly cache. If you unpacked the Npgsql archive to your Desktop folder, you'll find these files in the Desktop\Npgsql\bin\ms ...

Get PostgreSQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.