다음을 통해 공유


RelationalCommandExtensions.ExecuteScalar 메서드

정의

단일 스칼라 결과를 사용하여 명령을 실행합니다.

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

매개 변수

command
IRelationalCommand

실행할 명령입니다.

connection
IRelationalConnection

실행할 연결입니다.

반환

명령의 결과입니다.

적용 대상