13.13 GBaseRowUpdatingEventArgs 类
提供用于 RowUpdating 事件的数据。这个类不能被继承。对于该类所有成
员的列表,参考 GBaseRowUpdatingEventArgs 成员。
继承层次
System.Object
|__ System.EventArgs
|__ System.Data.Common.RowUpdatingEventArgs
|__ GBase.Data.GBaseClient.GBaseRowUpdatingEventArgs
语法
[Visual Basic]
Public NotInheritable Class GBaseRowUpdatingEventArgs _
Inherits RowUpdatingEventArgs
[C#]
public sealed class GBaseRowUpdatingEventArgs :
RowUpdatingEventArgs
线程安全性
这个类型的公共静态成员(在 Visual Basic 中为 Shared)对于多线程操
作是保证线程安全的,对于实例不保证线程安全性。
必要条件
命名空间:GBase.Data.GBaseClient
13.13.1GBaseRowUpdatingEventArgs 成员
公共构造函数
13.13.2GBaseRowUpdatingEventArgs 构造函数
初始化一个新的 GBaseRowUpdatedEventArgs 类实例。
语法
[Visual Basic] GBase 8a 程序员手册 ADO.NET 篇
南大通用数据技术股份有限公司 - 321 -
Public Sub New ( _
row As DataRow, _
command As IDbCommand, _
statementType As StatementType, _
tableMapping As DataTableMapping _
)
[C#]
public GBaseRowUpdatingEventArgs(
DataRow row,
IDbCommand command,
StatementType statementType,
DataTableMapping tableMapping
)
参数
1) row :通过 Update 发送的 DataRow ;
2) command :当调用 Update 时执行的 IDbCommand ;
3) statementType :指定查询类型的 StatementType 值之一 ;
4) tableMapping :通过 Update 发送的 DataTableMapping。
13.13.3GBaseRowUpdatingEventArgs属性
13.13.3.1 Command 属性
当调用 Update 的时候获取或设置 GBaseCommand。
语法
[Visual Basic]
Public Property Command As GBaseCommand
Get
Set
[C#]
public GBaseCommand Command { get; set; }