what is a data provider?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dragonstar
Posts: 19
Joined: Sat 18 Apr 2009 21:02

what is a data provider?

Post by dragonstar » Sat 06 Jul 2013 13:56

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

FCS
Posts: 176
Joined: Sat 23 Feb 2013 18:46

Re: what is a data provider?

Post by FCS » Sun 07 Jul 2013 14:00

Hello,

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

Regards
Michal

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: what is a data provider?

Post by DemetrionQ » Mon 08 Jul 2013 09:39

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.

Post Reply