Getting started

You can generate a complete PLINQO for Entity Framework solution from your database in three steps.

Step 1: Install CodeSmith Generator

Download and install CodeSmith Generator.

Note

If you don't own a Generator license, register on the CodeSmith Tools website to get a trial key.

Step 2: Download PLINQO EF

PLINQO EF isn't installed with Generator. Download it from GitHub:

  1. Download PLINQO-Entity.Framework-1.3.zip from the PLINQO for Entity Framework 1.3 release.
  2. Unblock the .zip file before you extract it.
  3. Extract it with Windows Explorer or a tool such as 7-Zip into its own folder under Documents\CodeSmith Generator\Templates, for example Documents\CodeSmith Generator\Templates\PLINQO-EF. Template Explorer shows Documents\CodeSmith Generator\Templates as My Templates.
  4. Open Template Explorer, and open the folder you extracted PLINQO EF into.

Step 3: Run the QuickStart

  1. Double-click QuickStart.cst to execute the template.

  2. Select the SourceDatabase property, then click its ... button.

  3. In the Database Picker dialog, choose your database and click Select. If your database isn't in the list, click ... to add it.

    The Database Picker dialog over the QuickStart properties, with the PetShop data source selected

  4. The QuickStart fills in the other properties from the database name. Change any you need to, then click Generate.

    QuickStart.cst properties filled in for the PetShop database, with the Generate button selected

The QuickStart creates a Visual Studio solution and opens it in Visual Studio.

Troubleshooting

If your web browser shows the error Unable to load the specified metadata resource, check the generated EDMX file's Build Action in Visual Studio. It must be set to EntityDeploy.

Visual Studio Properties window for PetShop.edmx, with Build Action set to EntityDeploy