Bagikan melalui


RelationalCommandExtensions.ExecuteScalar Metode

Definisi

Menjalankan perintah dengan satu hasil skalar.

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

Parameter

command
IRelationalCommand

Perintah yang akan dijalankan.

connection
IRelationalConnection

Koneksi yang akan dieksekusi.

Mengembalikan

Hasil perintah.

Berlaku untuk