Compartilhar via


RelationalQueryableMethodTranslatingExpressionVisitor.TranslateCast Método

Definição

Converte o Cast<TResult>(IQueryable) método sobre a origem fornecida.

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

Parâmetros

source
ShapedQueryExpression

A consulta em forma na qual o operador é aplicado.

resultType
Type

Retornos

A consulta em forma após a tradução.

Aplica-se a