TXDataBaseModel Class
Base class of the XData model, holding its schemas and the methods to look up its items.
Remarks
Methods that receive a qualified name accept the local name prefixed by the namespace or alias of the schema, as in XData.Default.Customer. The prefix can be omitted for items of a schema with no alias, which is the case of the model built from the Aurelius mapping.
Syntax
Unit: XData.Model.Classes
TXDataBaseModel = class(TXDataModelObject);
Constructors
| Name | Description |
|---|---|
| Create | Creates an empty model. |
Methods
| Name | Description |
|---|---|
| DefaultEntitySet | Returns the entity set that publishes the entities of an entity type. |
| DefineDefaultEntitySet | Defines the entity set returned by DefaultEntitySet for an entity type. |
| FindActionByOperationId | Looks for a service operation by its operation id, in all the schemas of the model. |
| FindController | Looks for a controller in all the schemas of the model. |
| FindEntitySet | Looks for an entity set by its qualified name. |
| FindEntityType | Looks for an entity type by its qualified name. |
| FindInstanceType | Looks for a plain object (instance) type by its qualified name. |
| FindSchema | Looks for a schema by its namespace or alias. |
| GetEntitySet | Returns an entity set by its qualified name, raising an exception if it is not found. |
| GetEntityType | Returns an entity type by its qualified name, raising an exception if it is not found. |
| Prepare | Initializes the model, making it ready to be used. |
Properties
| Name | Description |
|---|---|
| DefaultEntityContainer | Gets the default entity container of the model. |
| Schemas | Gets the schemas of the model. |
| Title | Gets or sets the title of the model. |
| Version | Gets or sets the version of the model. |