RelationalQueryableMethodTranslatingExpressionVisitor.TranslateCast 方法

定义

Cast<TResult>(IQueryable)转换给定源上的方法。

protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateCast (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, Type resultType);
protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateCast (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, Type resultType);
override this.TranslateCast : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * Type -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected Overrides Function TranslateCast (source As ShapedQueryExpression, resultType As Type) As ShapedQueryExpression

参数

source
ShapedQueryExpression

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

resultType
Type

返回

转换后的形状查询。

适用于