This project is read-only.


Beyond simply extending business objects with custom code you can actually control the all of the code that is generated to begin with. Using a fairly simple object model you can create your own Templates from scratch or inherit from existing templates and override key functionality.

Template related topics: See also: Assigning Templates

A simple template
// C# example of a custom template
public class CustomTemplate : ITemplate
    public ResourceFile[] Generate(Entity[] entities)
        //Create your code here
        return new ResourceFile[] { };
    public event EventHandler<TemplateWarningEventArgs> Warning;
    protected virtual void OnWarning(TemplateWarning warning)
        if (Warning != null) Warning(this, new TemplateWarningEventArgs(warning));

Next: Adding custom code

Last edited Mar 21, 2007 at 7:06 PM by justinc, version 5


No comments yet.