DB2 10.5 for Linux, UNIX, and Windows

DB2DataAdapter.CreateRowUpdatedEvent 方法

无论更新是否成功,都初始化 RowUpdatedEventArgs 类的新实例。

名称空间:
IBM.Data.DB2
组合件:
IBM.Data.DB2(在 IBM.Data.DB2.dll 中)

语法

[Visual Basic]
Overrides Protected Function CreateRowUpdatedEvent( _
   ByVal dataRow As DataRow, _
   ByVal command As IDbCommand, _
   ByVal statementType As StatementType, _
   ByVal tableMapping As DataTableMapping _
) As RowUpdatedEventArgs
[C#]
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(
   DataRow dataRow,
   IDbCommand command,
   StatementType statementType,
   DataTableMapping tableMapping
);
[C++]
protected: RowUpdatedEventArgs* CreateRowUpdatedEvent(
   DataRow* dataRow,
   IDbCommand* command,
   StatementType statementType,
   DataTableMapping* tableMapping
);
[JScript]
protected override function CreateRowUpdatedEvent(
   dataRow : DataRow,
   command : IDbCommand,
   statementType : StatementType,
   tableMapping : DataTableMapping
) : RowUpdatedEventArgs;

参数

dataRow
用来更新数据库的 DataRow
command
执行更新操作期间执行的 DB2®Command
statementType
命令是 UPDATE、INSERT、DELETE 还是 SELECT 语句。
tableMapping
DataTableMapping 对象。

返回值

System.Data.Common.RowUpdatedEventArgs 类的新实例。

注释

继承类注意事项: 在派生类中覆盖 CreateRowUpdatedEvent 时,请确保调用基类的 CreateRowUpdatedEvent 方法。