Preparing Visual Studio

Now you're ready to install Npgsql into the Visual Studio development environment. Once you've prepared Visual Studio, the Toolbox window will display a number of Npgsql components that you can add to your own applications. To add the Npgsql components to Visual Studio, open the Data tab (in the Toolbox window), right-click anywhere in the Data Toolbox, and choose Add/Remove Items. When the Customize Toolbox dialog appears, click the Browse button, navigate to the directory that holds Npgsql (Desktop\Npgsql\bin\ms), and open Npgsql.dll. Four new components will appear in the Data Toolbox: NpgsqlCommand, NpgsqlCommandBuilder, NpgsqlDataAdapter, and NpgsqlConnection.

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.