EntityDAC

TEntityConnection.BeforeConnect Event

Occurs just before establishing a connection.

Class

TEntityConnection

Syntax

property BeforeConnect: TNotifyEvent;

Remarks

Write a BeforeConnect event handler to take application-specific actions just before the connection component opens a database connection.

When the Connect method is called or the Connected property is set to True, a BeforeConnect event is generated, the connection is established, and then an AfterConnect event is generated. In the BeforeConnect event handler, the Connected property value is still False.

See Also

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