Page 1 of 1

what is a data provider?

Posted: Sat 06 Jul 2013 13:56
by dragonstar
I know this is going to sound stupid, but coming from MyDac and testing Unidac I do have one puzzlement.

I dropped a TUniConnection object in my data module, set it to MySql and the rest of the MySql properties and connected just fine.

Life is good.

So if I can connect with just the connection object, what are the providers for? They don't have any properties or events and there appears to be no way to hook them to the connection object.

Anyone? Anyone at all?

Thanks in advance for sharing this basic bit of wisdom with me.


Darrel Christenson

Re: what is a data provider?

Posted: Sun 07 Jul 2013 14:00
by FCS
Hello,

Probably, the DataProvider adds proper data access units into the uses section of the unit.

Regards
Michal

Re: what is a data provider?

Posted: Mon 08 Jul 2013 09:39
by DemetrionQ
Hello.

UniDAC providers components contain no properties or methods, they are designed just to add an appropriate provider unit to your project unit, without which the work with a server is impossible. For example, when you place the TMySQLUniProvider component into the form, the MySQLUniProvider unit is automatically added to the uses clause.
You can add an appropriate unit manually not using the component.