Versions Compared

Key

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

...

Once the generated Visual Studio solution is opened. We , you will need to build the solution to see the generated code as shown in the image below.

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.

...

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.

...

Info
If you are generating Object Factory support, then the DataAccess partial class will not be generated.

...