Share via


IRelationalParameter.AddDbParameter Method

Definition

Overloads

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

Adds the parameter as a DbParameter to a DbCommand.

AddDbParameter(DbCommand, Object)

Adds the parameter as a DbParameter to a DbCommand.

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

Source:
IRelationalParameter.cs
Source:
IRelationalParameter.cs
Source:
IRelationalParameter.cs

Adds the parameter as a DbParameter to a 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))

Parameters

command
DbCommand

The command to add the parameter to.

parameterValues
IReadOnlyDictionary<String,Object>

The map of parameter values

Applies to

AddDbParameter(DbCommand, Object)

Source:
IRelationalParameter.cs
Source:
IRelationalParameter.cs
Source:
IRelationalParameter.cs

Adds the parameter as a DbParameter to a 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)

Parameters

command
DbCommand

The command to add the parameter to.

value
Object

The value to be assigned to the parameter.

Applies to