RelationalQueryCompilationContext RelationalQueryCompilationContext Class

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

Syntax

Declaration

public class RelationalQueryCompilationContext : QueryCompilationContextPublic Class RelationalQueryCompilationContext
    Inherits QueryCompilationContext

Inheritance Hierarchy

Inherited Members

Model,
Model,
Logger,
Logger,
LinqOperatorProvider,
LinqOperatorProvider,
ContextType,
ContextType,
TrackQueryResults,
TrackQueryResults,
QuerySourceMapping,
QuerySourceMapping,
AddOrUpdateMapping(IQuerySource, Expression),
AddOrUpdateMapping(IQuerySource, Expression),
QueryAnnotations,
QueryAnnotations,
IsTrackingQuery,
IsTrackingQuery,
IsIncludeQuery,
IsIncludeQuery,
IsQueryBufferRequired,
IsQueryBufferRequired,
DetermineQueryBufferRequirement(QueryModel),
DetermineQueryBufferRequirement(QueryModel),
AddTrackableInclude(IQuerySource, IReadOnlyList<INavigation>),
AddTrackableInclude(IQuerySource, IReadOnlyList(Of INavigation)),
GetTrackableIncludes(IQuerySource),
GetTrackableIncludes(IQuerySource),
FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor, QueryModel),
FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor, QueryModel),
QuerySourceRequiresMaterialization(IQuerySource),
QuerySourceRequiresMaterialization(IQuerySource),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

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.

Properties summary

True if the current provider supports SQL LATERAL JOIN.

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

Gets the query method provider.

Methods summary

Creates a query model visitor.

Creates query model visitor.

Creates a unique table alias.

Creates a unique table alias.

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

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

Properties

  • IsLateralJoinSupported
    IsLateralJoinSupported

    True if the current provider supports SQL LATERAL JOIN.

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

    Property Value

    • System.Boolean
      System.Boolean
  • 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)

    Property Value

    • System.Collections.Generic.IList<T><System.String>
      System.Collections.Generic.IList<T>(Of System.String)

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

  • QueryMethodProvider
    QueryMethodProvider

    Gets the query method provider.

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

    Property Value

Methods

  • CreateQueryModelVisitor()
    CreateQueryModelVisitor()

    Creates a query model visitor.

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

    Returns

  • CreateQueryModelVisitor(EntityQueryModelVisitor)
    CreateQueryModelVisitor(EntityQueryModelVisitor)

    Creates query model visitor.

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

    Parameters

    Returns

  • 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.

  • 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

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll