Page 1 of 1

SpecificOption and DataSet of Connection

Posted: Tue 15 Jul 2008 08:25
by Eurocg
Hi.
Is the UniConnection SpecificOption 'CheckRowVersion', 'CursorUpdate' et cetera only for TUniQuery, TUniTable and TUniStoredProc component? Thus stands in the help of UniDac.

What is if I create a DataSet about TUniConnection?

Code: Select all

var
  DataSet : TCustomDADataSet;
begin
  DataSet := MyUniConnection.CreateDataSet;

end;
Do the SpecificOptions have then an effect on my DataSet?

Posted: Tue 15 Jul 2008 12:51
by Plash
The CreateDataSet method of TUniConnection creates an instance of the TCustomUniDataSet class. The SpecificOptions property has an effect on TCustomUniDataSet class and derived classes: TUniQuery, TUniTable and TUniStoredProc. You can set the SpecificOptions property with code like the following:

Code: Select all

var 
  DataSet : TCustomUniDataSet; 
begin 
  DataSet := MyUniConnection.CreateDataSet as TCustomUniDataSet;
  DataSet.SpecificOptions.Values['CheckRowVersion'] := 'True';
end; 

Posted: Thu 17 Jul 2008 09:52
by Eurocg
Thx you for help. :D