...
Download and install the latest version of CodeSmith Generator Professional.
NOTE: CSLA PLINQO requires the latest version of CodeSmith Generator Professional
(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.)
...
Step 3: Add a new CodeSmith Project (CSP) to your project.
- Open your project in Visual Studio.
- Right click on the project.
- Select "Add new item..."
- In Common Items there will be a CodeSmith Project.
Step 4: Add NHibernateMaster.cst to your CSP's output.
- Configure NHibernateMaster as desired.
- Don't forget to update your Assembly name!
Step 5: Update your App.Config
...
- your project in Solution Explorer and add a "New Item"
- Under "Visual Studio C# Items", and add a "CodeSmith Project"
Step 4: 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
- Right click on the CSP and "Generate Outputs"
Step 5: Add a connection string to your App or Web config
- Name the connection string "nhiberante" or the name of your database
Step 6: Generate Outputs
- Right click on your CSP and Generate Outputs.
- Compile.
- Enjoy!