TXDataModel Class
Describes everything an XData server publishes: the entity types and entity sets of the automatic CRUD endpoints, the service operations, and the types they use.
Remarks
The model is used by the server module to create the endpoints, and to read and write the data received and sent by the server. Servers usually use the TXDataAureliusModel descendant, which is built from the Aurelius mapping and the service contracts of the application.
Syntax
Unit: XData.Model.Classes
TXDataModel = class(TXDataBaseModel);
Methods
| Name | Description |
|---|---|
| CanonicalUrl​From​Entity | Builds the canonical URL of an entity from the entity itself. |
| CanonicalUrlFromId | Builds the canonical URL of an entity from its identifier. |
| DefaultSchema | Returns the default schema of the model. |
| EntitySetUrl | Returns the URL of an entity set, relative to the base URL of the server. |
| IdToKeyPredicate | Overloaded IdToKeyPredicate(TXDataEntityType, TValue) IdToKeyPredicate(TValue, TXDataEntityType, TXDataGetPropValueProc, TXDataGetNavPropValueProc) |