Compartilhar via


RelationalCommandExtensions.ExecuteScalar Método

Definição

Executa o comando com um ú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

O comando a ser executado.

connection
IRelationalConnection

A conexão com a qual executar.

Retornos

O resultado do comando.

Aplica-se a