Compartir a través de


IRelationalCommand.ExecuteScalar Método

Definición

Sobrecargas

ExecuteScalar(RelationalCommandParameterObject)

Ejecuta el comando con un único resultado escalar.

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Ejecuta el comando con un único resultado escalar.

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Obsoletos.

Ejecuta el comando con un único resultado escalar.

ExecuteScalar(RelationalCommandParameterObject)

Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs

Ejecuta el comando con un único resultado escalar.

public object ExecuteScalar (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
public object? ExecuteScalar (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
abstract member ExecuteScalar : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> obj
Public Function ExecuteScalar (parameterObject As RelationalCommandParameterObject) As Object

Parámetros

parameterObject
RelationalCommandParameterObject

Parámetros para este método.

Devoluciones

Resultado del comando.

Se aplica a

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Ejecuta el comando con un único resultado escalar.

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

Parámetros

connection
IRelationalConnection

Conexión con la que se va a ejecutar.

parameterValues
IReadOnlyDictionary<String,Object>

Valores de los parámetros.

Devoluciones

Resultado del comando.

Se aplica a

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

Precaución

Use overload without 'manageConnection' parameter

Ejecuta el comando con un único resultado escalar.

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

Parámetros

connection
IRelationalConnection

Conexión con la que se va a ejecutar.

parameterValues
IReadOnlyDictionary<String,Object>

Valores de los parámetros.

manageConnection
Boolean

Valor que indica si se va a abrir y cerrar la conexión según sea necesario.

Devoluciones

Resultado del comando.

Atributos

Se aplica a