Using extended properties

You can use extended properties in your database to control the generated code: business object types, names, descriptions and more. This table lists the extended properties the CSLA templates use, and their valid values.

Note

For the extended properties that set the business object type of a view or stored procedure, see Generating from views and stored procedures.

Extended property name Data type Description
CS_Description String The description of a property or class.
CS_Alias String The name of a property or class.
CS_FriendlyName String The friendly name generated for the business object's PropertyInfo.
CS_Default String The default value of a generated property.
CS_IsGeneric Boolean If true, the entity is generated with generic brackets.
CS_IsIdentity Boolean Marks a property as an identity column.
CS_IsComputed Boolean Marks a property as a computed column.
CS_ManyToMany Boolean Treats a relationship as many-to-many, if the table has at least two foreign key columns.
CS_IsScalarFunction Boolean Treats a command entity as a function.
CS_IsTableValuedFunction Boolean Treats a command entity as a function.
CS_IsInlineTableValuedFunction Boolean Treats a command entity as a function.
CS_IsMultiStatementTableValuedFunction Boolean Treats a command entity as a function.