Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CodeSmith Generator uses the Entities.csp Generator Project File (CSP) to generate code for your project. This file is created by the QuickStart with your all of your information pre-populated from the previous step. Generator is smart enough to figure out if you have already configured the Entities CSP file. If you haven't, Generator will automatically try to resolve the correct business object types (E.G., Criteria, EditableRoot, EditableRootList...) to generate based off of your database relationships. The generated code will be separated into multiple folders.

Folder NameDescription
CollectionsContains all non-collection business object types.
CommandsContains the data access implementation.
CriteriaContains properties, factory methods and required rules.
EntitiesContains all non-collection business object types.
UtilityContains any utilities classes that may be used by the generated code.

For the simplicity of this walk through I'll choose to talk about the Category business object. The Category business object is shown in the image above. As you might have noticed, there are multiple files for the Category business object. These files are called partial classes, which allows us to separate the different responsibilities of a business object.

...