One can use Extended Properties to extend the generated code. These extended properties can do anything from business object types, naming conventions, descriptions and much more. Below is a list of all of the extended properties property names and valid values that the CSLA templates use.
...
Extended Property Name | Data Type | Description |
CS_Description | String | Controls the description of a property or class. |
CS_Alias | String | Controls the property or class name. |
CS_FriendlyName | String | Controls the friendly name that is generated for the Business Objects PropertyInfo's. |
CS_Default | String | Controls the default value of a generated property. |
CS_IsGeneric | Boolean | If true, then an entity will be generated with generic brackets. |
CS_IsIdentity | Boolean | Marks a property as a an identity column. |
CS_IsComputed | Boolean | Marks a property as a computed column. |
CS_ManyToMany | Boolean | Treats a relationship as a many to many if the table has at-least two FK columns. |
CS_IsScalarFunction | Boolean | If set, a Command Entity will be treated as a function. |
CS_IsTableValuedFunction | Boolean | If set, a Command Entity will be treated as a function. |
CS_IsInlineTableValuedFunction | Boolean | If set, a Command Entity will be treated as a function. |
CS_IsMultiStatementTableValuedFunction | Boolean | If set, a Command Entity will be treated as a function. |