DbCommandBuilder.ApplyParameterInfo(DbParameter, DataRow, StatementType, Boolean) 方法

定义

允许 DbCommandBuilder 类的提供程序实现处理附加参数属性。Allows the provider implementation of the DbCommandBuilder class to handle additional parameter properties.

protected:
 abstract void ApplyParameterInfo(System::Data::Common::DbParameter ^ parameter, System::Data::DataRow ^ row, System::Data::StatementType statementType, bool whereClause);
protected abstract void ApplyParameterInfo (System.Data.Common.DbParameter parameter, System.Data.DataRow row, System.Data.StatementType statementType, bool whereClause);
abstract member ApplyParameterInfo : System.Data.Common.DbParameter * System.Data.DataRow * System.Data.StatementType * bool -> unit
Protected MustOverride Sub ApplyParameterInfo (parameter As DbParameter, row As DataRow, statementType As StatementType, whereClause As Boolean)

参数

parameter
DbParameter

要将附加修改应用到的 DbParameterA DbParameter to which the additional modifications are applied.

row
DataRow

来自由 DataRow 提供的架构表的 GetSchemaTable()The DataRow from the schema table provided by GetSchemaTable().

statementType
StatementType

生成的命令的类型;INSERT、UPDATE 或 DELETE。The type of command being generated; INSERT, UPDATE or DELETE.

whereClause
Boolean

如果参数是 update 或 delete WHERE 子句的一部分,则为 true;如果是 insert 或 update 值的一部分,则为 falsetrue if the parameter is part of the update or delete WHERE clause, false if it is part of the insert or update values.

注解

此方法允许 DbCommandBuilder 类的实现来处理特定于提供程序的参数属性。This method allows an implementation of the DbCommandBuilder class to handle provider-specific parameter properties.

适用于

另请参阅