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 Pervasive 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 Pervasive PSQL data provider.
1
Select File / New / Project... The New Project dialog appears.
2
In the Project Types pane, select Visual C# / Pervasive PSQL.
3
a.
In the Templates pane, select Pervasive PSQL Project.
b.
In the Name field, type a name, for example, My Pervasive Project, or accept the default name.
c.
In the Location field, type the location to which you want to save the project, or click Browse to navigate to the directory.
d.
In the Solution Name field, type the name for the solution.
e.
4
5
NOTE: If you are using the ADO.NET 2.0 common programming model, select the Pervasive 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
To add a Pervasive PSQL template to an existing project:
1
2
In the Add New Item dialog, select the Pervasive PSQL class.
3
Click Add. The class for the Pervasive PSQL data provider is added to the project.