Entity Attributes

Allow attributes to be added to various parts of an entity to suply extra meta-data to templates as needed.

family Business
{
    [DataTable("tblExample")]
    entity Example as EntityBase
    {
        [DataField("id")]
        field auto id int ExampleId;

        [DataField("colData")]
        field string Data;
    }
}

  • It will be possible to create custom attributes, simply add the correct using statements above.
  • Some default attributes will be created for extra database mapping information if desired.
  • Entity Attributes will have the ability to restrict what they are able to be placed on just like regular attributes.

See also: Partial Entities

Last edited Jan 19, 2008 at 8:49 PM by justinc, version 2

Comments

No comments yet.