﻿Welcome to the mojoPortal Code Generator powered by SubSonic

The basic idea is to select a table from the database, select a template and click the Generate button.

These instructions will then be replaced by generated code which you can copy and paste into your own .cs files.

The templates included are either modified from SubSonic templates or templates I have written. 
You can write your own templates as well by modifying existing ones as a starting point.
You should copy and rename any templates before modifying them so that if you upgrade mojoPortal, you custom templates are not overwritten.

For those who have the Codesmith Tools, we also have templates for Codesmith included with the source code under the CodesmithTemplates folder.
I will be creating new templates that work with this page based on our existing Codesmith templates as I find time.

Note that the above paramters are passed to all templates but that doesn't mean all templates use all of them.

The Templates are just .aspx pages with the ContentType=text/plain, so they render text instead of Html.
You can edit them in Visual Studio with full intellisense.
