Using the Templates
The following section will cover how to use the various templates that ship with CSLA.
Please see the Getting Started section for steps on how to configure and use the templates within seconds.
Manual Generation
Use the following steps to get started using the CSLA templates if you are not planning on using the QuickStart template.
This is useful when you are wanting to add CSLA to an existing or new project.
- Create a new Class Library project in Visual Studio.
- Add a new CodeSmith Generator Project file to the Visual Studio project.
- Add a new Output to the project file for the Entities.cst template.
- In the Visual Studio Solution Explorer, right click the Generator Project File you added to the project in step 2.
- Click on the Add Output menu item.
- Choose the Entities.cst template in the Add Output dialog and click the OK button.
- Required only If you are using the Object Factory Data Access Implementation.
- Follow steps 1-2.
- Add a new Output to the project file for the DataAccessLayer\DataAccessLayer.cst template.
- Finally, Generate the Outputs
- In the Visual Studio Solution Explorer, right click the Generator Project File you added to the project in step 2.
- Click on the Generate Outputs menu item.