EntityDAC

TCustomEntityContext.IsAttached Method

The method is designed to check whether the specified entity is attached to the data context.

Class

TCustomEntityContext

Syntax

function IsAttached(Entity: TMappedEntity): boolean;

Parameters
Entity
The entity which has to be checked

Remarks

Use the method to determine whether the particular entity is attached to the data context. The method returns True if the entity is attached, False otherwise. "Attached" means that the entity is either created with the TCustomEntityContext.CreateAttachedEntity method, or created with the TCustomEntityContext.CreateEntity method and then attached using the Attach method.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback