Back to Devexpress

Built-In Attributes

xpo-2005-create-a-data-model-built-in-attributes.md

latest5.0 KB
Original Source

Built-In Attributes

  • Jun 30, 2021
  • 3 minutes to read

Built-in attributes allow you to provide detailed mapping information to XPO and thus address any business requirement. The table below lists all the attributes provided by XPO.

AttributeDescription
AggregatedAttributeIndicates that persistent objects referenced by the target property are aggregated.
AssociationAttributeIdentifies the end of an association that is involved in an object relationship.
ColumnDbDefaultValueAttributeApplied to persistent class’ fields or properties. Specifies the SQL expression representing the default value of the database column mapped to the target property/field.
ColumnDefaultValueAttributeApplied to persistent class’ fields or properties. Specifies the default value of the database column mapped to the target property/field.
CustomAttributeSpecifies a custom attribute for a class or a class member.
DbTypeAttributeSpecifies the database type of the column that a property is mapped to.
DefaultMembersPersistenceLists the values that determine which members are implied as persistent by default.
DeferredDeletionAttributeEnables deferred object deletion.
DelayedAttributeIndicates that the property’s value should not be loaded when a persistent object is being loaded. The property will be loaded the first time it is accessed.
DisplayNameAttributeSpecifies the member’s display name.
ExplicitLoadingAttributeSpecifies that the information used to retrieve persistent objects that are referenced by the current property, is included in a query used to load this property.
FetchOnlyAttributeApplied to persistent properties and fields. When applied, specifies that the target property or field value can be loaded from the database but should not be saved (should not be included in the INSERT and UPDATE SQL statements).
IndexedAttributeIndicates that a property or field affects index creation.
IndicesAttributeSpecifies the properties that affect the creation of non-unique database indices.
KeyAttributeIndicates that a property or a field is a key.
MapInheritanceAttributeSpecifies the type of object-relational inheritance mapping for the class.
MemberDesignTimeVisibilityAttributeSpecifies whether a property or class is visible at design time.
NoForeignKeyAttributeDisables automatic creation of the FOREIGN KEY constraints.
NonPersistentAttributeIndicates that a class, property, or field will not be stored in a persistent data store.
NullableAttributeApplies to persistent class’ fields or properties. Specifies if a nullable column should be created when updating the database schema for the target property/field.
NullableBehaviorAttributeApplied to persistent classes. Specifies if nullable columns should be created when updating the database schema for the target class.
NullValueAttributeAssociates a constant with the null value of a property or a field of a simple type.
OptimisticLockingAttributeSpecifies that a persistent object’s state can be locked during a session.
PersistentAliasAttributeIndicates that a property is not persistent and its value is calculated based upon the values of a specific field(s).
PersistentAttributeIndicates that a property, field or class will be stored in a persistent data store and specifies the target column or table name.
SizeAttributeSpecifies the maximum number of characters that can be stored in a column which is created to store the data of a property or field.
ValueConverterAttributeSpecifies that a property is made persistent using a Value Converter.