Note |
---|
title | Use SerializableAttribute |
---|
|
All content types should be marked with the SerializableAttribute to enable them to be stored in a binary file. |
Lynicon provides some attributes for use in basic type declaration:
AddressComponent([routeKey, ConversionFormat=,UsePath=]) | Used to create a mapping from the Route Data of a request to the content item. Indicates that the given route key maps to the value of this property. A conversion format may be supplied for conversion of the value of this property to a string. |
AlwaysInclude | On a reference property, indicates that the reference should be fetched by default on every read via the API |
DisplayBlock(title, order) | Indicates which display block this field should be displayed in and indicates the title of the block, together with its order - its position in the list of blocks. Note that properties without an order value given will be displayed at the end of the list. |
NonComposite | Indicates that the type composition system will not be used for this type. This allows Entity Framework relational features to work, they are incompatible currently with type composition. |
NotMapped | Standard Entity Framework attribute to indicate a property is not persisted. |
ScaffoldColumn(false) | The property is not available for editing in the content editor |