ShapedQueryExpression.UpdateResultCardinality(ResultCardinality) 方法

定义

创建一个新的表达式,该表达式类似于此表达式,但具有提供的结果基数。

public virtual Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression UpdateResultCardinality (Microsoft.EntityFrameworkCore.Query.ResultCardinality resultCardinality);
abstract member UpdateResultCardinality : Microsoft.EntityFrameworkCore.Query.ResultCardinality -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
override this.UpdateResultCardinality : Microsoft.EntityFrameworkCore.Query.ResultCardinality -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Public Overridable Function UpdateResultCardinality (resultCardinality As ResultCardinality) As ShapedQueryExpression

参数

resultCardinality
ResultCardinality

结果的 ResultCardinality 属性。

返回

具有更新结果基数的表达式。

适用于