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

Gets the type of the context./

(Inherited from QueryCompilationContext)

IsIncludeQuery IsIncludeQuery

The query has at least one Include operation.

(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

Gets a value indicating whether this query requires a query buffer.

(Inherited from QueryCompilationContext)

IsTrackingQuery IsTrackingQuery

Gets a value indicating whether this is a tracking query.

(Inherited from QueryCompilationContext)

LinqOperatorProvider LinqOperatorProvider

Gets the linq operator provider.

(Inherited from QueryCompilationContext)

Logger Logger

Gets the logger.

(Inherited from QueryCompilationContext)

Model Model

Gets the 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

Gets the query annotations./

(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

Gets the query source mapping.

(Inherited from QueryCompilationContext)

TrackQueryResults TrackQueryResults

Gets a value indicating the default configured tracking behavior.

(Inherited from QueryCompilationContext)

Methods

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

Adds or updates the expression mapped to a query source.

(Inherited from QueryCompilationContext)

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

Adds a trackable include.

(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)

Determine if the query requires a query buffer.

(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)

Determines all query sources that require materialization.

(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)

Gets all trackable includes for a given query source.

(Inherited from QueryCompilationContext)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

QuerySourceRequiresMaterialization(IQuerySource) QuerySourceRequiresMaterialization(IQuerySource)

Determine whether or not a query source requires materialization.

(Inherited from QueryCompilationContext)

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object