IRelationalParameter.AddDbParameter 方法

定义

重载

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

将 参数作为 DbParameter 添加到 DbCommand

AddDbParameter(DbCommand, Object)

将 参数作为 DbParameter 添加到 DbCommand

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

将 参数作为 DbParameter 添加到 DbCommand

public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues);
public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object?> parameterValues);
public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues);
abstract member AddDbParameter : System.Data.Common.DbCommand * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> unit
Public Sub AddDbParameter (command As DbCommand, parameterValues As IReadOnlyDictionary(Of String, Object))

参数

command
DbCommand

要向其添加参数的命令。

parameterValues
IReadOnlyDictionary<String,Object>

参数值的映射

适用于

AddDbParameter(DbCommand, Object)

将 参数作为 DbParameter 添加到 DbCommand

public void AddDbParameter (System.Data.Common.DbCommand command, object value);
public void AddDbParameter (System.Data.Common.DbCommand command, object? value);
abstract member AddDbParameter : System.Data.Common.DbCommand * obj -> unit
Public Sub AddDbParameter (command As DbCommand, value As Object)

参数

command
DbCommand

要向其添加参数的命令。

value
Object

分配给参数的值。

适用于