This project is read-only.

Name based default

You can also specify default property values based on column name. In many databases primary key has same name and type in all tables (typically ID). You can give default definition to all columns named ID. (Northwind database does not have a unique name for the primary keys. This is just a sample).
default {
  readonly compare ID: long;

If you are using multiple dbmodel files in one project, you can put all defaults to single file and include it to other dbmodel files with include directive.

Type based default

Last edited Oct 26, 2010 at 9:52 AM by nolics, version 2


No comments yet.