RelationalTypeMapping.CreateParameter Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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.
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.
- direction
- ParameterDirection
A direção do parâmetro.
Retornos
Um parâmetro recém-criado.
Aplica-se a
Entity Framework
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de