Table of Contents

TXDataInstanceType Class

Represents a plain object (instance) type, a class that is not an Aurelius entity.

Remarks

Instance types describe the classes used as parameters or results of service operations, which are serialized to and from JSON but are not persisted through automatic CRUD endpoints.

Syntax

Unit: XData.Model.Classes

TXDataInstanceType = class(TXDataStructuredType);

Constructors

Name Description
Create Creates an instance type with no properties.

Methods

Name Description
GetScalarProperty Returns a scalar property declared in the type, by its index.
GetStructured​Property Returns a structured property declared in the type, by its index.
QualifiedName Returns the name of the instance type, qualified by the schema it belongs to.
ScalarPropertyCount Returns the number of scalar properties declared in the type.
StructuredProperty​Count Returns the number of structured properties declared in the type.

Properties

Name Description
BaseType Gets or sets the instance type this type inherits from.
BaseTypeRef Gets or sets the name of the base type, used when the model is written to or read from JSON.
Collection Gets the collection type whose items are of this type.
NavigationProperties Gets the properties declared in the type that point to other objects.
Properties Gets the scalar properties declared in the type.