Share via


RelationalQueryCompilationContext Class

Definition

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

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class RelationalQueryCompilationContext : Microsoft.EntityFrameworkCore.Query.QueryCompilationContext
type RelationalQueryCompilationContext = class
    inherit QueryCompilationContext
Public Class RelationalQueryCompilationContext
Inherits QueryCompilationContext
Inheritance
RelationalQueryCompilationContext

Constructors

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.

RelationalQueryCompilationContext(QueryCompilationContextDependencies, ILinqOperatorProvider, IQueryMethodProvider, 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.

RelationalQueryCompilationContext(QueryCompilationContextDependencies, RelationalQueryCompilationContextDependencies, Boolean, Boolean, IReadOnlySet<String>)

Creates a new instance of the RelationalQueryCompilationContext class.

RelationalQueryCompilationContext(QueryCompilationContextDependencies, RelationalQueryCompilationContextDependencies, Boolean)

Creates a new instance of the RelationalQueryCompilationContext class.

Fields

QueryParameterPrefix

Prefix for all the query parameters generated during parameter extraction in query pipeline.

This property is typically used by database providers (and other extensions). It is generally not used in application code.

(Inherited from QueryCompilationContext)

Properties

ContextOptions

The ContextOptions to use during query compilation.

(Inherited from QueryCompilationContext)
ContextType

The CLR type of derived DbContext to use during query compilation.

(Inherited from QueryCompilationContext)
Dependencies

Dependencies for this service.

(Inherited from QueryCompilationContext)
IgnoreAutoIncludes

A value indicating whether eager loaded navigations are ignored in this query.

(Inherited from QueryCompilationContext)
IgnoreQueryFilters

A value indicating whether query filters are ignored in this query.

(Inherited from QueryCompilationContext)
IsAsync

A value indicating whether it is async query.

(Inherited from QueryCompilationContext)
IsAsyncQuery

Get a value indicating whether query that is being processed is asynchronous.

(Inherited from QueryCompilationContext)
IsBuffering

A value indicating whether the underlying server query needs to pre-buffer all data.

(Inherited from QueryCompilationContext)
IsIncludeQuery

The query has at least one Include operation.

(Inherited from QueryCompilationContext)
IsLateralJoinSupported

True if the current provider supports SQL LATERAL JOIN.

IsPrecompiling

Indicates whether the query is being precompiled.

(Inherited from QueryCompilationContext)
IsQueryBufferRequired

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

(Inherited from QueryCompilationContext)
IsTracking
Obsolete.

A value indicating whether it is tracking query.

(Inherited from QueryCompilationContext)
IsTrackingQuery

Gets a value indicating whether this is a tracking query.

(Inherited from QueryCompilationContext)
LinqOperatorProvider

Gets the LINQ operator provider.

(Inherited from QueryCompilationContext)
Logger

The query logger to use during query compilation.

(Inherited from QueryCompilationContext)
MaxTableAliasLength

Max length of the table alias supported by provider.

Model

The model to use during query compilation.

(Inherited from QueryCompilationContext)
NonNullableReferenceTypeParameters

Names of parameters which have non-nullable reference types.

(Inherited from QueryCompilationContext)
ParametersToConstantize

Names of parameters on which Constant<T>(T) was used. Such parameters are later transformed into constants.

This property is typically used by database providers (and other extensions). It is generally not used in application code.

(Inherited from QueryCompilationContext)
ParametersToNotConstantize

Names of parameters on which Parameter<T>(T) was used. Such parameters are later not transformed into constants even when parameterized collection constantization is configured as the default.

This property is typically used by database providers (and other extensions). It is generally not used in application code.

(Inherited from QueryCompilationContext)
ParentQueryReferenceParameters

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

QueryAnnotations

Gets the query annotations.

(Inherited from QueryCompilationContext)
QueryMethodProvider

Gets the query method provider.

QuerySourceMapping

Gets the query source mapping.

(Inherited from QueryCompilationContext)
QuerySplittingBehavior

A value indicating the QuerySplittingBehavior configured for the query. If no value has been configured then SingleQuery will be used.

QueryTrackingBehavior

A value indicating QueryTrackingBehavior of the query.

(Inherited from QueryCompilationContext)
RelationalDependencies

Relational provider-specific dependencies for this service.

SqlAliasManager

A manager for SQL aliases, capable of generate uniquified table aliases.

SupportsPrecompiledQuery

A value indicating whether the provider supports precompiled query. Default value is false. Providers that do support this feature should opt-in by setting this value to true.

(Inherited from QueryCompilationContext)
Tags

The set of tags applied to this query.

(Inherited from QueryCompilationContext)
TrackQueryResults

Gets a value indicating the default configured tracking behavior.

(Inherited from QueryCompilationContext)

Methods

AddAnnotations(IEnumerable<IQueryAnnotation>)

Adds query annotations to the existing list.

(Inherited from QueryCompilationContext)
AddOrUpdateMapping(IQuerySource, Expression)

Adds or updates the expression mapped to a query source.

(Inherited from QueryCompilationContext)
AddOrUpdateMapping(IQuerySource, IEntityType)

Gets the entity type mapped to the given query source

(Inherited from QueryCompilationContext)
AddQuerySourceRequiringMaterialization(IQuerySource)

Add a query source to the set of query sources requiring materialization.

(Inherited from QueryCompilationContext)
AddTag(String)

Adds a tag to Tags.

(Inherited from QueryCompilationContext)
AddTrackableInclude(IQuerySource, IReadOnlyList<INavigation>)

Adds a trackable include.

(Inherited from QueryCompilationContext)
CloneAnnotations(QuerySourceMapping, QueryModel)

Creates cloned annotations targeting a new QueryModel.

(Inherited from QueryCompilationContext)
CreateQueryExecutor<TResult>(Expression)

Creates the query executor func which gives results for this query.

(Inherited from QueryCompilationContext)
CreateQueryExecutorExpression<TResult>(Expression)

Creates the query executor func which gives results for this query.

(Inherited from QueryCompilationContext)
CreateQueryModelVisitor()

Creates a query model visitor.

CreateQueryModelVisitor()

Creates query model visitor.

(Inherited from QueryCompilationContext)
CreateQueryModelVisitor(EntityQueryModelVisitor)

Creates query model visitor.

CreateQueryModelVisitor(EntityQueryModelVisitor)

Creates query model visitor.

(Inherited from QueryCompilationContext)
CreateUniqueTableAlias()

Creates a unique table alias.

CreateUniqueTableAlias(String)

Creates a unique table alias.

DetermineQueryBufferRequirement(QueryModel)

Determine if the query requires a query buffer.

(Inherited from QueryCompilationContext)
FindEntityType(IQuerySource)

Gets the entity type mapped to the given query source

(Inherited from QueryCompilationContext)
FindQuerySourcesRequiringMaterialization(EntityQueryModelVisitor, QueryModel)

Determines all query sources that require materialization.

(Inherited from QueryCompilationContext)
FindSelectExpression(IQuerySource)

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

GetTrackableIncludes(IQuerySource)

Gets all trackable includes for a given query source.

(Inherited from QueryCompilationContext)
QuerySourceRequiresMaterialization(IQuerySource)

Determine whether or not a query source requires materialization.

(Inherited from QueryCompilationContext)
RegisterCorrelatedSubqueryMetadata(MainFromClause, Boolean, INavigation, INavigation, IQuerySource)

Registers a mapping between correlated collection query models and metadata needed to process them.

(Inherited from QueryCompilationContext)
RegisterRuntimeParameter(String, LambdaExpression)

Registers a runtime parameter that is being added at some point during the compilation phase. A lambda must be provided, which will extract the parameter's value from the QueryContext every time the query is executed.

(Inherited from QueryCompilationContext)
TryGetCorrelatedSubqueryMetadata(MainFromClause, CorrelatedSubqueryMetadata)

Looks up a mapping between correlated collection query models and metadata needed to process them.

(Inherited from QueryCompilationContext)
UpdateMapping(QuerySourceMapping)

Updates the query source mappings to the new query sources

(Inherited from QueryCompilationContext)

Applies to