QueryableMethodTranslatingExpressionVisitor.TranslateElementAtOrDefault 方法

定义

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateElementAtOrDefault (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression index, bool returnDefault);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateElementAtOrDefault (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression index, bool returnDefault);
abstract member TranslateElementAtOrDefault : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateElementAtOrDefault (source As ShapedQueryExpression, index As Expression, returnDefault As Boolean) As ShapedQueryExpression

参数

source
ShapedQueryExpression

对其应用运算符的形状查询。

index
Expression

元素的索引。

returnDefault
Boolean

一个值,该值指示应返回默认值还是引发默认值。

返回

转换后的形状查询。

适用于