Type based default

You can also give default property definition based on column type. This is useful when you use custom data types or some data types from SQL server that do not have implicit type mapping. If we like to map all money columns to decimal properties, definition is:
default {
    type money: decimal;

Type default definition is similar to property definition. Type definition starts with reserved word type and instead of column name you give type name (from SQL server).

[Next chapter: Query parameters

Last edited Oct 26, 2010 at 8:54 AM by nolics, version 2


No comments yet.