Table of Contents

TXDataBaseModel.DefaultEntitySet Method

Returns the entity set that publishes the entities of an entity type.

Syntax

Unit: XData.Model.Classes

function TXDataBaseModel.DefaultEntitySet(AType: TXDataEntityType): TXDataEntitySet;

Parameters

<-> Parameter Type Description
AType TXDataEntityType The entity type.

Returns

The entity set defined with DefineDefaultEntitySet or, when none is defined, the first entity set whose entity type is AType. Returns nil if no such entity set exists.

See also