...
Getting started with PLINQO for NHibernate is an easy three step process.
Step 1: Download CodeSmith Generator
Download and and install the latest version of CodeSmith Generator Professional.NOTE:
Info |
---|
PLINQO for NHibernate requires the latest version of CodeSmith Generator |
...
. |
Info |
---|
...
If you have not previously registered with CodeSmith Tools or do not currently own a license of CodeSmith Generator, you will be required to register on the CodeSmith Tools website to get a trial key before using CodeSmith Generator. |
...
QuickStart
Create a new solution and a new PLINQO Data project.
...
Step 1: Open QuickStart.cst
...
Step 2: Select a SourceDatabase.
...
Step 2: Find PLINQO for NHibernate
- Open Template Explorer
- Navigate to Frameworks\PLINQO-NH in the Generator Samples folder.
Step 3: Run the QuickStart
Widget Connector | ||
---|---|---|
|
- Double click the quickstart.cst template
- Select a database
- Click generate!
Clicking generate will automatically open Visual Studio so that you can quickly get started using PLINQO for NHibernate!
Info |
---|
Once the Visual Studio Solution has opened, build the project to generate PLINQO for NHibernate! |
Manual Configuration
Add PLINQO to a pre-existing project.
Step 1: Open a Visual Studio Project
Either create a new project, or open the project that you want to add your NHibernate files to.
Step 2: Add a new CodeSmith Project (CSP) to your project.
- Open your project in Visual Studio.
- Right click on your project in Solution Explorer and add a "New Item"
- Under "Visual Studio C# Items", and add a "CodeSmith Project"
Step 3: Configurate your CSP for PLINQO for NHibernate
- Right click on the CSP and "Manage Outputs"
- Add Output, select Hbms.cst, and fill in the 2 required properties
- Add Output, select Entities.cst, and fill in the 2 required properties
- Add Output, select Queries.cst, and fill in the 1 required property
Step 4: Add a connection string to your App or Web config
- Name the connection string "nhiberante" or the name of your database
Step 5: Generate Outputs
- Right click on your CSP and Generate Outputs.
- Compile.
- Enjoy!