IRelationalCommand.ExecuteScalar Metodo

Definizione

Overload

ExecuteScalar(RelationalCommandParameterObject)

Esegue il comando con un singolo risultato scalare.

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Esegue il comando con un singolo risultato scalare.

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

Esegue il comando con un singolo risultato scalare.

ExecuteScalar(RelationalCommandParameterObject)

Esegue il comando con un singolo risultato scalare.

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

Parametri

parameterObject
RelationalCommandParameterObject

Parametri per questo metodo.

Restituisce

Risultato del comando.

Si applica a

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Esegue il comando con un singolo risultato scalare.

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

Parametri

connection
IRelationalConnection

Connessione da eseguire.

parameterValues
IReadOnlyDictionary<String,Object>

Valori per i parametri.

Restituisce

Risultato del comando.

Si applica a

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

Attenzione

Use overload without 'manageConnection' parameter

Esegue il comando con un singolo risultato scalare.

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

Parametri

connection
IRelationalConnection

Connessione da eseguire.

parameterValues
IReadOnlyDictionary<String,Object>

Valori per i parametri.

manageConnection
Boolean

Valore che indica se aprire e chiudere la connessione in base alle esigenze.

Restituisce

Risultato del comando.

Attributi

Si applica a