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

此方法的参数。

返回

命令的结果。

实现

适用于