This project is read-only.

Assigning templates

Templates are used to specify how entities are to be actually implemented. There are a variety of templates built into NBusiness that provide output for the default implementation of the business object framework. You must have a reference to the assembly that contains the template you wish to apply to your entity then you must add the appropriate using statement.

using NBusiness.Templates;
using NBusiness.Templates.Sql;

family Example
    entity test as EntityBase, EntityBaseCollection, SqlScripts

You are also able to create custom templates and in the declaration point to the Type of your template. Since templates are simply classes it is possible to inherit from existing templates if you simply want to tweak select generated code.

Next: Compiling an entity project using esc

Last edited Sep 5, 2007 at 2:38 AM by justinc, version 4


No comments yet.