LiteDac and TDatasetProvider

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Fri 02 Nov 2012 15:26

LiteDac and TDatasetProvider

Post by strobbekoen » Fri 02 Nov 2012 15:31


I am developing a application which has to run online and offline. For online I use SQL Server on a remote server. For offline I use SQLite.

For SQL Server I use a TClientDataset with a TDatasetProvider linked to a TADODataset. ADO retrieves the data from the server. Note that I only use this mechanism to download datasets FROM the server. Inserting, Updating and Deleting is taken care of by code I wrote which generates the required SQL statements.

My question is if I can use the same mechanism with LiteDac's TLiteQuery ? This means the logic of my application would not change, and I can link my TDatasetProvider to a TLiteQuery component. Would this work ?

Thank you.

Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: LiteDac and TDatasetProvider

Post by AlexP » Mon 05 Nov 2012 10:11


Yes, you can use TLiteQuery with TDatasetProvider like ADO components.

Post Reply