Icon TEWBExecuteDataSetCommandEvent

Unit: ewbdatasetadapter

TEWBExecuteDataSetCommandEvent = procedure(Adapter:
      TEWBDataSetAdapter; const DatabaseName: String; Params: TParams;
      var RowsAffected: Integer; var DataSet: TDataSet) of object

The TEWBExecuteDataSetCommandEvent type is used by the TEWBDataSetAdapter OnExecuteSelect event to execute a Select dataset command when retrieving column definitions and rows. It is also used by the TEWBDatabaseAdapter OnExecuteInsert, OnExecuteUpdate, and OnExecuteDelete events to execute Insert, Update, and Delete dataset commands when committing transactions.

The DatabaseName parameter is the name of the database (optional) and the Params parameter is the list of parameters (and values) to use for executing the dataset command.

The RowsAffected variable parameter must be populated by any event handler for this event type, but the DataSet variable parameter only needs to be populated with OnExecuteSelect event handlers.
Image