Page 1 of 1

EntityDac/MyDac Lost Connection

Posted: Wed 02 Feb 2022 18:09
by noxe
How do I get the TMyConnection that EntityDac uses in the background if I have set the provider MyDac. I want as in the topic
viewtopic.php?f=7&t=44291&p=178104&hili ... 74#p178104

described, implement an automatic reconnect if a "Lost Connection" occurs. For that I need the TMyConnection instance.

Thanks in advance

Re: EntityDac/MyDac Lost Connection

Posted: Fri 04 Feb 2022 14:33
by MaximG
Hi!
Thanks for contacting us! Working with the TMyConnection class is done by calling EntityDAC.DataProvider.MyDAC.
This provider does not provide the ability to use the TMyConnection features you are interested in.
A possible solution is to create your own provider. Implementation examples of such providers are provided with EntityDAC :

[EntityDAC folder]\Demos\DataProviders\