Table Template

Topic updated 15-5-2007

The Table Template is the main Project Item Template in BO-Layer projects. Every Table Template is based on, and linked to a Table, View or Custom View in the Database Repository.

The Table Template generates the classes and source files listed below. The source code of these generated files can be opened using the Source Editor, and enriched by adding custom code.

POCO Class (Plain Old C# Object)
Factory Class
Collection Class
NHibernate Mapping
Unit Test Class if the Unit Testing Template is used

 

Main features of the Table Template are:

Strongly typed properties and collections using native .NET types
Support for .NET 2.0 Nullable Types (e.g. int32?, etc.)
NHibernate Lazy Loading
Support for Legacy Databases
Relation Mapping
Validation Model
Generate Constructor based on Primary Key (default option)
Optional NHibernate ILifeCycle implementation

 

 

Known Validation Messages / Errors

Autonumbering fields inside Composite Primary Keys are not supported