Condividi tramite


RelationalCommandExtensions.ExecuteScalar Metodo

Definizione

Esegue il comando con un singolo risultato scalare.

public static object ExecuteScalar (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommand command, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
static member ExecuteScalar : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> obj
<Extension()>
Public Function ExecuteScalar (command As IRelationalCommand, connection As IRelationalConnection) As Object

Parametri

command
IRelationalCommand

Comando da eseguire.

connection
IRelationalConnection

Connessione da eseguire su.

Restituisce

Risultato del comando.

Si applica a