Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Step 1: Download CodeSmith

Download and install the latest version of CodeSmith Generator Professional.

NOTE: CSLA 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 2: Open a Visual Studio Project

Either create a new project, or open the project that you want to add your NHibernate files to.

Step 3: Add a new CodeSmith Project (CSP) to your project.

  1. Right click on the project.
  2. Select "Add new item..."
  3. In Common Items there will be a CodeSmith Project.

Step 4: Add NHibernateMaster.cst to your CSP's output.

  1. Configure NHibernateMaster as desired.
  2. Don't forget to update your Assembly name!

Step 5: Update your App.Config

Create or Update your App.config or Web.config file to support NHibernate.

Step 6: Generate Outputs

  1. Right click on your CSP and Generate Outputs.
  2. Compile.
  3. enjoy!
  • No labels