EntityDac/MyDac Lost Connection

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
noxe
Posts: 3
Joined: Wed 27 Jan 2021 13:08

EntityDac/MyDac Lost Connection

Post by noxe » Wed 02 Feb 2022 18:09

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

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: EntityDac/MyDac Lost Connection

Post by MaximG » Fri 04 Feb 2022 14:33

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\

Post Reply