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 (DesktopNpgsqlinms), and open Npgsql.dll. Four new components will appear in the Data Toolbox: NpgsqlCommand, NpgsqlCommandBuilder, NpgsqlDataAdapter, and NpgsqlConnection.

Категории