次の方法で共有


RelationalCommandExtensions.ExecuteScalar メソッド

定義

1 つのスカラー結果でコマンドを実行します。

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

実行する接続。

戻り値

コマンドの結果。

適用対象