Hello
I have a project with about 20 Delphi forms.
- 10 Forms that contains « lists »
Each form contains one TDBGrid and one or more TUniTable.
- 10 Forms that contains detailed view with fields.
Each form contains one or more TuniTable
I am wondering if i should put a TUniConnection on each form ?
Or should i put a global TUniConnection on the project ?
Or one TUniConnection on each list forms and share them for detailed forms ?
Thanks for your answer
UniTable / UniConnection best practice
Re: UniTable / UniConnection best practice
Hello,
If your forms are created and opened in the same thread as the main form, it's enough to use one TUniConnection for the whole application. If you work with threads, then some databases require one connection, and some require a connection for each thread.
If your forms are created and opened in the same thread as the main form, it's enough to use one TUniConnection for the whole application. If you work with threads, then some databases require one connection, and some require a connection for each thread.