RelationalTypeMapping.CreateParameter Método

Definição

Sobrecargas

CreateParameter(DbCommand, String, Object, Nullable<Boolean>)

Cria um DbParameter com as informações de tipo apropriadas configuradas.

CreateParameter(DbCommand, String, Object, Nullable<Boolean>, ParameterDirection)

Cria um DbParameter com as informações de tipo apropriadas configuradas.

CreateParameter(DbCommand, String, Object, Nullable<Boolean>)

Cria um DbParameter com as informações de tipo apropriadas configuradas.

public virtual System.Data.Common.DbParameter CreateParameter (System.Data.Common.DbCommand command, string name, object value, bool? nullable = default);
public virtual System.Data.Common.DbParameter CreateParameter (System.Data.Common.DbCommand command, string name, object? value, bool? nullable = default);
abstract member CreateParameter : System.Data.Common.DbCommand * string * obj * Nullable<bool> -> System.Data.Common.DbParameter
override this.CreateParameter : System.Data.Common.DbCommand * string * obj * Nullable<bool> -> System.Data.Common.DbParameter
Public Overridable Function CreateParameter (command As DbCommand, name As String, value As Object, Optional nullable As Nullable(Of Boolean) = Nothing) As DbParameter

Parâmetros

command
DbCommand

O comando no qual o parâmetro deve ser criado.

name
String

O nome do parâmetro.

value
Object

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

nullable
Nullable<Boolean>

Um valor que indica se o parâmetro deve ser um tipo anulável.

Retornos

Um parâmetro recém-criado.

Aplica-se a

CreateParameter(DbCommand, String, Object, Nullable<Boolean>, ParameterDirection)

Cria um DbParameter com as informações de tipo apropriadas configuradas.

public virtual System.Data.Common.DbParameter CreateParameter (System.Data.Common.DbCommand command, string name, object? value, bool? nullable = default, System.Data.ParameterDirection direction = System.Data.ParameterDirection.Input);
abstract member CreateParameter : System.Data.Common.DbCommand * string * obj * Nullable<bool> * System.Data.ParameterDirection -> System.Data.Common.DbParameter
override this.CreateParameter : System.Data.Common.DbCommand * string * obj * Nullable<bool> * System.Data.ParameterDirection -> System.Data.Common.DbParameter
Public Overridable Function CreateParameter (command As DbCommand, name As String, value As Object, Optional nullable As Nullable(Of Boolean) = Nothing, Optional direction As ParameterDirection = System.Data.ParameterDirection.Input) As DbParameter

Parâmetros

command
DbCommand

O comando no qual o parâmetro deve ser criado.

name
String

O nome do parâmetro.

value
Object

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

nullable
Nullable<Boolean>

Um valor que indica se o parâmetro deve ser um tipo anulável.

direction
ParameterDirection

A direção do parâmetro.

Retornos

Um parâmetro recém-criado.

Aplica-se a