共用方式為


RelationalCommand.ExecuteScalar(RelationalCommandParameterObject) 方法

定義

使用單一純量結果執行命令。

public virtual object ExecuteScalar (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
public virtual object? ExecuteScalar (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
abstract member ExecuteScalar : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> obj
override this.ExecuteScalar : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> obj
Public Overridable Function ExecuteScalar (parameterObject As RelationalCommandParameterObject) As Object

參數

parameterObject
RelationalCommandParameterObject

這個方法的參數。

傳回

命令的結果。

實作

適用於