The method is designed to check whether the specified entity is attached to the data context.
function IsAttached(Entity: TMappedEntity): boolean;
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.