RelationalQueryCompilationContext RelationalQueryCompilationContext Class

Definition

A relational query compilation context. The primary data structure representing the state/components used during relational query compilation.

public class RelationalQueryCompilationContext : QueryCompilationContext
Public Class RelationalQueryCompilationContext
    Inherits QueryCompilationContext
Inheritance
System.ObjectSystem.Object
RelationalQueryCompilationContextRelationalQueryCompilationContext

Constructors

RelationalQueryCompilationContext(IModel, ISensitiveDataLogger, IEntityQueryModelVisitorFactory, IRequiresMaterializationExpressionVisitorFactory, ILinqOperatorProvider, IQueryMethodProvider, Type, Boolean) RelationalQueryCompilationContext(IModel, ISensitiveDataLogger, IEntityQueryModelVisitorFactory, IRequiresMaterializationExpressionVisitorFactory, ILinqOperatorProvider, IQueryMethodProvider, Type, Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public RelationalQueryCompilationContext(IModel model, ISensitiveDataLogger logger, IEntityQueryModelVisitorFactory entityQueryModelVisitorFactory, IRequiresMaterializationExpressionVisitorFactory requiresMaterializationExpressionVisitorFactory, ILinqOperatorProvider linqOperatorProvider, IQueryMethodProvider queryMethodProvider, Type contextType, bool trackQueryResults)
Public Sub New(model As IModel, logger As ISensitiveDataLogger, entityQueryModelVisitorFactory As IEntityQueryModelVisitorFactory, requiresMaterializationExpressionVisitorFactory As IRequiresMaterializationExpressionVisitorFactory, linqOperatorProvider As ILinqOperatorProvider, queryMethodProvider As IQueryMethodProvider, contextType As Type, trackQueryResults As Boolean)
Parameters
model
IModel IModel
contextType
System.Type System.Type
trackQueryResults
System.Boolean System.Boolean

Properties

ContextType ContextType

Inherited from QueryCompilationContext

IsIncludeQuery IsIncludeQuery

Inherited from QueryCompilationContext

IsLateralJoinSupported IsLateralJoinSupported

True if the current provider supports SQL LATERAL JOIN.

public virtual bool IsLateralJoinSupported { get; }
Public Overridable ReadOnly Property IsLateralJoinSupported As Boolean
Value
System.Boolean System.Boolean

IsQueryBufferRequired IsQueryBufferRequired

Inherited from QueryCompilationContext

IsTrackingQuery IsTrackingQuery

Inherited from QueryCompilationContext

LinqOperatorProvider LinqOperatorProvider

Inherited from QueryCompilationContext

Logger Logger

Inherited from QueryCompilationContext

Model Model

Inherited from QueryCompilationContext

ParentQueryReferenceParameters ParentQueryReferenceParameters

Gets the list of parameter names that represent reference to a parent query.

public virtual IList<string> ParentQueryReferenceParameters { get; }
Public Overridable ReadOnly Property ParentQueryReferenceParameters As IList(Of String)
Value
System.Collections.Generic.IList<System.String> System.Collections.Generic.IList(Of System.String)

The list of parameter names that represent reference to a parent query.

QueryAnnotations QueryAnnotations

Inherited from QueryCompilationContext

QueryMethodProvider QueryMethodProvider

Gets the query method provider.

public virtual IQueryMethodProvider QueryMethodProvider { get; }
Public Overridable ReadOnly Property QueryMethodProvider As IQueryMethodProvider
Value
IQueryMethodProvider IQueryMethodProvider

The query method provider.

QuerySourceMapping QuerySourceMapping

Inherited from QueryCompilationContext

TrackQueryResults TrackQueryResults

Inherited from QueryCompilationContext

Methods

AddOrUpdateMapping(IQuerySource, Expression) AddOrUpdateMapping(IQuerySource, Expression)

Inherited from QueryCompilationContext

AddTrackableInclude(IQuerySource, IReadOnlyList) AddTrackableInclude(IQuerySource, IReadOnlyList(Of INavigation))

Inherited from QueryCompilationContext

CreateQueryModelVisitor() CreateQueryModelVisitor()

Creates a query model visitor.

public override EntityQueryModelVisitor CreateQueryModelVisitor()
Public Overrides Function CreateQueryModelVisitor As EntityQueryModelVisitor
Returns

The new query model visitor.

Overrides

CreateQueryModelVisitor(EntityQueryModelVisitor) CreateQueryModelVisitor(EntityQueryModelVisitor)

Creates query model visitor.

public override EntityQueryModelVisitor CreateQueryModelVisitor(EntityQueryModelVisitor parentEntityQueryModelVisitor)
Public Overrides Function CreateQueryModelVisitor(parentEntityQueryModelVisitor As EntityQueryModelVisitor) As EntityQueryModelVisitor
Parameters
parentEntityQueryModelVisitor
EntityQueryModelVisitor EntityQueryModelVisitor

The parent entity query model visitor.

Returns

The new query model visitor.

Overrides

CreateUniqueTableAlias() CreateUniqueTableAlias()

Creates a unique table alias.

public virtual string CreateUniqueTableAlias()
Public Overridable Function CreateUniqueTableAlias As String
Returns
System.String System.String

A unique table alias.

CreateUniqueTableAlias(String) CreateUniqueTableAlias(String)

Creates a unique table alias.

public virtual string CreateUniqueTableAlias(string currentAlias)
Public Overridable Function CreateUniqueTableAlias(currentAlias As String) As String
Parameters
currentAlias
System.String System.String

The current alias.

Returns
System.String System.String

A unique table alias.

DetermineQueryBufferRequirement(QueryModel) DetermineQueryBufferRequirement(QueryModel)

Inherited from QueryCompilationContext

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor, QueryModel) FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor, QueryModel)

Inherited from QueryCompilationContext

FindSelectExpression(IQuerySource) FindSelectExpression(IQuerySource)

Searches for a select expression corresponding to the passed query source.

public virtual SelectExpression FindSelectExpression(IQuerySource querySource)
Public Overridable Function FindSelectExpression(querySource As IQuerySource) As SelectExpression
Parameters
querySource
IQuerySource IQuerySource

The query source.

Returns

The select expression.

GetHashCode() GetHashCode()

Inherited from System.Object

GetTrackableIncludes(IQuerySource) GetTrackableIncludes(IQuerySource)

Inherited from QueryCompilationContext

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

QuerySourceRequiresMaterialization(IQuerySource) QuerySourceRequiresMaterialization(IQuerySource)

Inherited from QueryCompilationContext

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object