Executes the IDbCommand for each inserted, updated, or deleted row in the DataSet also implementing RowUpdating and RowUpdated Event Handlers
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public void UpdateDataset(
IDbCommand insertCommand,
IDbCommand deleteCommand,
IDbCommand updateCommand,
DataSet dataSet,
string tableName,
AdoHelper<(Of <(<'TFactory>)>)>..::..RowUpdatingHandler rowUpdatingHandler,
AdoHelper<(Of <(<'TFactory>)>)>..::..RowUpdatedHandler rowUpdatedHandler
) |
Visual Basic |
---|
Public Sub UpdateDataset (
insertCommand As IDbCommand,
deleteCommand As IDbCommand,
updateCommand As IDbCommand,
dataSet As DataSet,
tableName As String,
rowUpdatingHandler As AdoHelper<(Of <(<'TFactory>)>)>..::..RowUpdatingHandler,
rowUpdatedHandler As AdoHelper<(Of <(<'TFactory>)>)>..::..RowUpdatedHandler
) |
Examples
| Copy |
---|
RowUpdatingEventHandler rowUpdatingHandler = new RowUpdatingEventHandler( OnRowUpdating );
RowUpdatedEventHandler rowUpdatedHandler = new RowUpdatedEventHandler( OnRowUpdated );
helper.UpdateDataSet(sqlInsertCommand, sqlDeleteCommand, sqlUpdateCommand, dataSet, "Order", rowUpdatingHandler, rowUpdatedHandler); |
See Also