EntityAttribute Class
Marks a class as an entity class.
Declaration
EntityAttribute = class(
TCustomAttribute
)
Remarks
This attribute allows you to include or exclude specific classes to/from an entity model. A session component can only manipulate data stores and query their data using instances of entity classes.
You can specify a table to which an entity class is mapped using the TableAttribute. Otherwise, the class name is considered the table name. The ‘T’ prefix is automatically removed.
The following code marks the TPerson class as an entity class. Creating a data store schema for this class maps it to the Person table.
uses
..., dxEMF.Core, dxEMF.Attributes;
type
[Entity]
TPerson = class
// ...
end;
Inheritance
TObject
TCustomAttribute
EntityAttribute
See Also