Table of Contents

TXDataSchema Class

Groups the types, entity containers and controllers of an XData model under a namespace.

Remarks

The model built from the Aurelius mapping has a single schema, with namespace XData.Default and no alias. The Find methods of the schema receive the local (unqualified) names of the items, and compare them case-insensitively.

Syntax

Unit: XData.Model.Classes

TXDataSchema = class(TXDataModelObject);

Constructors

Name Description
Create Creates an empty schema.

Methods

Name Description
FindContainer Looks for an entity container of the schema by its name.
FindController Looks for a controller of the schema by its name.
FindEntityType Looks for an entity type of the schema by its name.
FindEnumMember Looks for a member of any enumerated type of the schema by its name.
FindEnumType Looks for an enumerated type of the schema by its name.
FindInstanceType Looks for an instance type of the schema by its name.
FindOrDefine​Converter Returns the URL converter of a type, creating it when needed.
FindScalarType Looks for a scalar type by its name.
FindType Looks for a type of any kind by its name.

Properties

Name Description
Alias Gets or sets a short alternative to the namespace of the schema.
Controllers Gets the controllers of the schema, which hold the service operations.
EntityContainers Gets the entity containers of the schema.
EntityTypes Gets the entity types of the schema.
EnumTypes Gets the enumerated types of the schema.
InstanceTypes Gets the plain object (instance) types of the schema.
Model Gets the model the schema belongs to.
Namespace Gets or sets the namespace of the schema.