DbCommandBuilder.SetRowUpdatingHandler(DbDataAdapter) Method

定义

注册 DbCommandBuilder 以处理 RowUpdatingDbDataAdapter 事件。 Registers the DbCommandBuilder to handle the RowUpdating event for a DbDataAdapter.

protected abstract void SetRowUpdatingHandler (System.Data.Common.DbDataAdapter adapter);
参数
adapter
DbDataAdapter

要用于更新的 DbDataAdapter The DbDataAdapter to be used for the update.

注解

此方法旨在用于构建自定义命令生成器的提供程序编写器。This method is intended for use by provider writers building a custom command builder. 新建DbDataAdapter添加到DbCommandBuilder,为相同的注册RowUpdating事件。When a new DbDataAdapter is added to the DbCommandBuilder, it is registered for the DbDataAdapter's RowUpdating event. 如果此方法再次调用具有相同DbDataAdapter,则DbCommandBuilder是相同的注销RowUpdating事件。If this method is called again with the same DbDataAdapter, the DbCommandBuilder is unregistered for that DbDataAdapter's RowUpdating event.

适用于