Compartilhar via


IRelationalParameter.AddDbParameter Método

Definição

Sobrecargas

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

Adiciona o parâmetro como um DbParameter a um DbCommand.

AddDbParameter(DbCommand, Object)

Adiciona o parâmetro como um DbParameter a um DbCommand.

AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)

Adiciona o parâmetro como um DbParameter a um 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))

Parâmetros

command
DbCommand

O comando ao qual adicionar o parâmetro.

parameterValues
IReadOnlyDictionary<String,Object>

O mapa de valores de parâmetro

Aplica-se a

AddDbParameter(DbCommand, Object)

Adiciona o parâmetro como um DbParameter a um 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)

Parâmetros

command
DbCommand

O comando ao qual adicionar o parâmetro.

value
Object

O valor a ser atribuído ao parâmetro.

Aplica-se a