Using Provider-Specific Templates
Visual Studio offers a set of templates to help you build applications that automatically include features such as SQL leveling.
Creating a New Project
When you create a new project in Visual Studio, you can use a template specific to the PSQL data provider, or a template that creates an application with generic code.
In the following example, we create a new project in Visual Studio using the template for the PSQL data provider.
1
Select File > New > Project The New Project dialog appears.
2
3
Select Pervasive PSQL Project in the middle pane.
4
5
NOTE: If you are using the ADO.NET 2.0 common programming model, select the PSQL Generic Provider Project template. In this case, the project does not require a specific reference to an assembly.
Adding a Template to an Existing Project
1
2
In the Add New Item dialog, select the PSQL class.
3
Click Add. The class for the PSQL data provider is added to the project.