Creating an Npgsql-enabled VB Project
Creating a PostgreSQL client application is easy with the tools provided by Visual Studio, but before you start, there's one step that you'll need to follow every time you create a new Npgsql-enabled VB project.
When you create a new VB project, Visual Studio automatically links in a number of commonly used .NET framework components (such as System, System.Data, and System.Windows.Forms). If you're going to add Npgsql components to a VB project, you must define a “reference” to the Npgsql assembly. If you're not used to .NET terminology, think of an assembly as an object library, and the process of adding a reference as analogous to adding that library to the link command line.
To create a new VB project, ...
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.