Getting started
You can generate a complete PLINQO for LINQ to SQL 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
PLINQO isn't installed with Generator. Download it from GitHub:
- Download
PLINQO.LINQ.to.SQL-5.2.zipfrom the PLINQO for LINQ to SQL 5.2 release. - Unblock the
.zipfile before you extract it. - Extract it into its own folder under
Documents\CodeSmith Generator\Templates, for exampleDocuments\CodeSmith Generator\Templates\PLINQO. Template Explorer showsDocuments\CodeSmith Generator\Templatesas My Templates. - Open Template Explorer, and open the folder you extracted PLINQO into.
Step 3: Run the QuickStart
- Double-click
QuickStart.cstto execute the template. - Select a database in the SourceDatabase property.
- Click Generate.
The QuickStart creates a Visual Studio solution and opens it in Visual Studio. Build the solution to generate the PLINQO code.
To learn what the QuickStart can create, see the QuickStart template properties and the QuickStart feature tour. To add PLINQO to an existing project instead, see Using the templates.