Partager via


RelationalMemberTranslatorProvider.Translate Méthode

Définition

Surcharges

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

Convertit un LINQ MemberExpression en équivalent SQL.

Translate(SqlExpression, MemberInfo, Type)

Source:
RelationalMemberTranslatorProvider.cs
Source:
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

Paramètres

instance
SqlExpression
member
MemberInfo
returnType
Type

Retours

Implémente

S’applique à

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

Source:
RelationalMemberTranslatorProvider.cs
Source:
RelationalMemberTranslatorProvider.cs
Source:
RelationalMemberTranslatorProvider.cs
Source:
RelationalMemberTranslatorProvider.cs
Source:
RelationalMemberTranslatorProvider.cs

Convertit un LINQ MemberExpression en équivalent 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

Paramètres

instance
SqlExpression

Représentation SQL de Expression.

member
MemberInfo

Informations de membre de Member.

returnType
Type

Type de retour de Type.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

Enregistreur d’événements de requêtes à utiliser.

Retours

Une traduction SQL du MemberExpression.

Implémente

S’applique à