Compartilhar via


IRelationalCommand.ExecuteNonQuery Método

Definição

Sobrecargas

ExecuteNonQuery(RelationalCommandParameterObject)

Executa o comando sem resultados.

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Executa o comando sem resultados.

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Obsoleto.

Executa o comando sem resultados.

ExecuteNonQuery(RelationalCommandParameterObject)

Origem:
IRelationalCommand.cs
Origem:
IRelationalCommand.cs
Origem:
IRelationalCommand.cs
Origem:
IRelationalCommand.cs

Executa o comando sem resultados.

public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> int
Public Function ExecuteNonQuery (parameterObject As RelationalCommandParameterObject) As Integer

Parâmetros

parameterObject
RelationalCommandParameterObject

Parâmetros para esse método.

Retornos

O número de linhas afetadas.

Aplica-se a

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Executa o comando sem resultados.

public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> int
Public Function ExecuteNonQuery (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As Integer

Parâmetros

connection
IRelationalConnection

A conexão com a qual executar.

parameterValues
IReadOnlyDictionary<String,Object>

Os valores dos parâmetros.

Retornos

O número de linhas afetadas.

Aplica-se a

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)

Cuidado

Use overload without 'manageConnection' parameter

Executa o comando sem resultados.

public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default, bool manageConnection = true);
[System.Obsolete("Use overload without 'manageConnection' parameter")]
public int ExecuteNonQuery (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, bool manageConnection);
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
[<System.Obsolete("Use overload without 'manageConnection' parameter")>]
abstract member ExecuteNonQuery : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> int
Public Function ExecuteNonQuery (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, Optional manageConnection As Boolean = true) As Integer
Public Function ExecuteNonQuery (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), manageConnection As Boolean) As Integer

Parâmetros

connection
IRelationalConnection

A conexão com a qual executar.

parameterValues
IReadOnlyDictionary<String,Object>

Os valores dos parâmetros.

manageConnection
Boolean

Um valor que indica se a conexão deve ser aberta e fechada conforme necessário.

Retornos

O número de linhas afetadas.

Atributos

Aplica-se a