Partilhar via


RelationalMemberTranslatorProvider.Translate Método

Definição

Sobrecargas

Translate(SqlExpression, MemberInfo, Type)
Translate(SqlExpression, MemberInfo, Type, IDiagnosticsLogger<DbLoggerCategory.Query>)

Converte um LINQ MemberExpression em um equivalente de SQL.

Translate(SqlExpression, MemberInfo, Type)

Origem:
RelationalMemberTranslatorProvider.cs
Origem:
RelationalMemberTranslatorProvider.cs
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MemberInfo member, Type returnType);
abstract member Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function Translate (instance As SqlExpression, member As MemberInfo, returnType As Type) As SqlExpression

Parâmetros

instance
SqlExpression
member
MemberInfo
returnType
Type

Retornos

Implementações

Aplica-se a

Translate(SqlExpression, MemberInfo, Type, IDiagnosticsLogger<DbLoggerCategory.Query>)

Origem:
RelationalMemberTranslatorProvider.cs
Origem:
RelationalMemberTranslatorProvider.cs
Origem:
RelationalMemberTranslatorProvider.cs
Origem:
RelationalMemberTranslatorProvider.cs
Origem:
RelationalMemberTranslatorProvider.cs

Converte um LINQ MemberExpression em um equivalente de SQL.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, System.Reflection.MemberInfo member, Type returnType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? instance, System.Reflection.MemberInfo member, Type returnType, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
abstract member Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.Translate : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * System.Reflection.MemberInfo * Type * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function Translate (instance As SqlExpression, member As MemberInfo, returnType As Type, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As SqlExpression

Parâmetros

instance
SqlExpression

Uma representação SQL de Expression.

member
MemberInfo

As informações de membro de Member.

returnType
Type

O tipo de retorno de Type.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

O agente de consulta a ser usado.

Retornos

Uma tradução SQL do MemberExpression.

Implementações

Aplica-se a