Partager via


SqlTranslatingExpressionVisitor Constructeurs

Définition

Surcharges

SqlTranslatingExpressionVisitor(SqlTranslatingExpressionVisitorDependencies, RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

Crée une instance de SqlTranslatingExpressionVisitor.

SqlTranslatingExpressionVisitor(IRelationalAnnotationProvider, IExpressionFragmentTranslator, IMethodCallTranslator, IMemberTranslator, IRelationalTypeMapper, RelationalQueryModelVisitor, SelectExpression, Expression, Boolean, Boolean)

Crée une instance de SqlTranslatingExpressionVisitor.

SqlTranslatingExpressionVisitor(SqlTranslatingExpressionVisitorDependencies, RelationalQueryModelVisitor, SelectExpression, Expression, Boolean)

Source:
SqlTranslatingExpressionVisitor.cs
Source:
SqlTranslatingExpressionVisitor.cs

Crée une instance de SqlTranslatingExpressionVisitor.

public SqlTranslatingExpressionVisitor (Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitorDependencies dependencies, Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor queryModelVisitor, Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression targetSelectExpression = default, System.Linq.Expressions.Expression topLevelPredicate = default, bool inProjection = false);
new Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor : Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitorDependencies * Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
Public Sub New (dependencies As SqlTranslatingExpressionVisitorDependencies, queryModelVisitor As RelationalQueryModelVisitor, Optional targetSelectExpression As SelectExpression = Nothing, Optional topLevelPredicate As Expression = Nothing, Optional inProjection As Boolean = false)

Paramètres

dependencies
SqlTranslatingExpressionVisitorDependencies

Objet de paramètre contenant des dépendances pour ce service.

queryModelVisitor
RelationalQueryModelVisitor

Visiteur du modèle de requête.

targetSelectExpression
SelectExpression

Expression de sélection cible.

topLevelPredicate
Expression

Prédicat de niveau supérieur.

inProjection
Boolean

true si l’expression à traduire est une projection LINQ.

S’applique à

SqlTranslatingExpressionVisitor(IRelationalAnnotationProvider, IExpressionFragmentTranslator, IMethodCallTranslator, IMemberTranslator, IRelationalTypeMapper, RelationalQueryModelVisitor, SelectExpression, Expression, Boolean, Boolean)

Crée une instance de SqlTranslatingExpressionVisitor.

public SqlTranslatingExpressionVisitor (Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider relationalAnnotationProvider, Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IExpressionFragmentTranslator compositeExpressionFragmentTranslator, Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IMethodCallTranslator methodCallTranslator, Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IMemberTranslator memberTranslator, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper relationalTypeMapper, Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor queryModelVisitor, Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression targetSelectExpression = default, System.Linq.Expressions.Expression topLevelPredicate = default, bool bindParentQueries = false, bool inProjection = false);
new Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor : Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider * Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IExpressionFragmentTranslator * Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IMethodCallTranslator * Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.IMemberTranslator * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor * Microsoft.EntityFrameworkCore.Query.Expressions.SelectExpression * System.Linq.Expressions.Expression * bool * bool -> Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.SqlTranslatingExpressionVisitor
Public Sub New (relationalAnnotationProvider As IRelationalAnnotationProvider, compositeExpressionFragmentTranslator As IExpressionFragmentTranslator, methodCallTranslator As IMethodCallTranslator, memberTranslator As IMemberTranslator, relationalTypeMapper As IRelationalTypeMapper, queryModelVisitor As RelationalQueryModelVisitor, Optional targetSelectExpression As SelectExpression = Nothing, Optional topLevelPredicate As Expression = Nothing, Optional bindParentQueries As Boolean = false, Optional inProjection As Boolean = false)

Paramètres

relationalAnnotationProvider
IRelationalAnnotationProvider

Fournisseur d’annotations relationnelles.

compositeExpressionFragmentTranslator
IExpressionFragmentTranslator

Traducteur de fragments d’expression composite.

methodCallTranslator
IMethodCallTranslator

Traducteur d’appel de méthode.

memberTranslator
IMemberTranslator

Traducteur membre.

relationalTypeMapper
IRelationalTypeMapper

Mappeur de type relationnel.

queryModelVisitor
RelationalQueryModelVisitor

Visiteur du modèle de requête.

targetSelectExpression
SelectExpression

Expression de sélection cible.

topLevelPredicate
Expression

Prédicat de niveau supérieur.

bindParentQueries
Boolean

true pour lier des requêtes parentes.

inProjection
Boolean

true si l’expression à traduire est une projection LINQ.

S’applique à