Share via


ShapedQueryExpression.UpdateResultCardinality(ResultCardinality) Method

Definition

Creates a new expression that is like this one, but with supplied result cardinality.

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

Parameters

resultCardinality
ResultCardinality

The ResultCardinality property of the result.

Returns

An expression with the updated result cardinality.

Applies to