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