IMethodCallTranslatorProvider.Translate Método

Definição

Sobrecargas

Translate(IModel, SqlExpression, MethodInfo, IReadOnlyList<SqlExpression>)

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MethodInfo method, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments);

Parâmetros

model
IModel
instance
SqlExpression
method
MethodInfo

Retornos

Aplica-se a

Translate(IModel, SqlExpression, MethodInfo, IReadOnlyList<SqlExpression>, IDiagnosticsLogger<DbLoggerCategory.Query>)

Origem:
IMethodCallTranslatorProvider.cs
Origem:
IMethodCallTranslatorProvider.cs
Origem:
IMethodCallTranslatorProvider.cs

Converte um LINQ MethodCallExpression em um equivalente de SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MethodInfo method, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? instance, System.Reflection.MethodInfo method, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);

Parâmetros

model
IModel

Um modelo a ser usado para tradução.

instance
SqlExpression

Uma representação SQL de Object.

method
MethodInfo

As informações do método de Method.

arguments
IReadOnlyList<SqlExpression>

Representações sql de Arguments.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

O agente de consulta a ser usado.

Retornos

Uma tradução SQL do MethodCallExpression.

Aplica-se a