RelationalCommandExtensions.ExecuteScalar Método

Definición

Ejecuta el comando con un único resultado escalar.

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

Parámetros

command
IRelationalCommand

Comando que se va a ejecutar.

connection
IRelationalConnection

Conexión con la que se va a ejecutar.

Devoluciones

Resultado del comando.

Se aplica a