|
AnyDAC
|
Returns reference to internal command object, that will handle update request.
The Commands indexed property returns a reference to the internal TADCustomCommand objects, that will handle the update requests, specified by the ARequest index. Use this reference to setup the command properties not accessible through the TADUpdateSQL interface. For example, Params or Macros.
property Commands [ARequest: TADUpdateRequest]: TADCustomCommand;
ADUpdateSQL1.InsertSQL := 'insert into !tab (workstation_time, id, name) values (:workstation_time, :new_id, :new_name)';
ADUpdateSQL1.Commands[arInsert].ParamByName('workstation_time').AsDateTime := Now();
ADUpdateSQL1.Commands[arInsert].MacroByName('tab').AsRaw := 'mytab';|
What do you think about this topic? Send feedback!
|