Microsoft.EntityFrameworkCore.Query Namespace

Classes

AsyncQueryMethodProvider

Provides reflection objects for late-binding to asynchronous relational query operations.

CollectionInitializingExpression
CollectionPopulatingExpression
CollectionResultExpression

An expression that represents creation of a collection in ShaperExpression for relational providers.

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

CollectionShaperExpression

An expression that represents creation of a collection in ShaperExpression.

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

CompiledQueryCacheKeyGenerator

Creates keys that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

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

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

CompiledQueryCacheKeyGeneratorDependencies

Service dependencies parameter class for CompiledQueryCacheKeyGenerator

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

EntityMaterializerSource

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

EntityMaterializerSourceDependencies

Service dependencies parameter class for EntityMaterializerSource

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

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

EntityProjectionExpression

An expression that represents an entity in the projection of SelectExpression.

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

EntityQueryModelVisitor

The core visitor that processes a query to be executed.

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

EntityQueryModelVisitorDependencies

Service dependencies parameter class for EntityQueryModelVisitor

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

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

EntityQueryModelVisitorFactory

Creates instances of EntityQueryModelVisitor.

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

EntityQueryRootExpression

An expression that represents an entity query root in query expression.

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

EntityShaperExpression

An expression that represents creation of an entity instance in ShaperExpression.

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

EnumerableExpression

An expression that represents an enumerable or group translated from chain over a grouping element.

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

EvaluatableExpressionFilter

Represents a filter for evaluatable expressions.

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

EvaluatableExpressionFilterDependencies

Service dependencies parameter class for EvaluatableExpressionFilter

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

ExpressionEqualityComparer

A comparer which implements IEqualityComparer<T> for Expression.

ExpressionExtensions

Extension methods for Expression types.

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

ExpressionPrinter

A class to create a printable string representation of expression.

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

GroupByShaperExpression

An expression that represents creation of a grouping element in ShaperExpression.

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

IncludeExpression

An expression that represents include operation in ShaperExpression.

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

IncludeSpecification

Represents a single query include operation.

InlineQueryRootExpression

An expression that represents an inline query root within the query (e.g. new[] { 1, 2, 3 }).

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

JsonQueryExpression

An expression representing an entity or a collection of entities mapped to a JSON column and the path to access it.

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

MaterializeCollectionNavigationExpression

An expression that represents materialization of a collection navigation in ShaperExpression.

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

NavigationExpansionExtensibilityHelper

Service which helps with various aspects of navigation expansion extensibility.

NavigationExpansionExtensibilityHelperDependencies

Service dependencies parameter class for NavigationExpansionExtensibilityHelper

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

NonQueryExpression

An expression that contains a non-query expression. The result of a non-query expression is typically the number of rows affected.

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

NotParameterizedAttribute

Signals that custom LINQ operator parameter should not be parameterized during query compilation.

NullConditionalExpression

Expression representing null-conditional access. Logic in this file is based on https://github.com/bartdesmet/ExpressionFutures

ParameterQueryRootExpression

An expression that represents a parameter query root within the query.

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

PathSegment

A struct representing a component of JSON path used in JsonQueryExpression or JsonScalarExpression.

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

ProjectionBindingExpression

An expression that gets values from QueryExpression to be used in ShaperExpression while creating results.

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

ProjectionMember

A class representing a chain of CLR members to bind. Usually generated from successive Select calls in the query.

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

QueryableMethods

A class that provides reflection metadata for translatable LINQ methods.

QueryableMethodTranslatingExpressionVisitor

A class that translates queryable methods in a query.

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

QueryableMethodTranslatingExpressionVisitorDependencies

Service dependencies parameter class for QueryableMethodTranslatingExpressionVisitor

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

QueryCompilationContext

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

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

QueryCompilationContextDependencies

Service dependencies parameter class for QueryCompilationContext

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

QueryContext

The principal data structure used by a compiled query during execution.

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

QueryContextDependencies

Service dependencies parameter class for QueryContext

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

QueryContextFactory

A factory for QueryContext instances.

QueryMethodProvider

Provides reflection objects for late-binding to synchronous relational query operations.

QueryRootExpression

An expression that represents a query root in query expression.

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

QueryRootProcessor

A visitor which adds additional query root nodes during preprocessing.

QuerySqlGenerator

A query SQL generator to get IRelationalCommand for given SelectExpression.

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

QuerySqlGeneratorDependencies

Service dependencies parameter class for QuerySqlGenerator

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

QueryTranslationPostprocessor

A class that post-processes the translated query. This class allows to process the generated server query expression and the associated shaper expression.

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

QueryTranslationPostprocessorDependencies

Service dependencies parameter class for QueryTranslationPostprocessor

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

QueryTranslationPreprocessor

A class that preprocesses the query before translation.

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

QueryTranslationPreprocessorDependencies

Service dependencies parameter class for QueryTranslationPreprocessor

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

RelationalAggregateMethodCallTranslatorProvider

Provides translations for LINQ MethodCallExpression expressions which represents aggregate methods.

RelationalAggregateMethodCallTranslatorProviderDependencies

Service dependencies parameter class for RelationalAggregateMethodCallTranslatorProvider

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

RelationalCollectionShaperExpression

An expression that represents creation of a collection for relational provider in ShaperExpression.

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

RelationalCompiledQueryCacheKeyGenerator

Creates keys that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

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

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

RelationalCompiledQueryCacheKeyGeneratorDependencies

Service dependencies parameter class for RelationalCompiledQueryCacheKeyGenerator

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

RelationalEntityShaperExpression

An expression that represents creation of an entity instance for a relational provider in ShaperExpression.

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

RelationalEvaluatableExpressionFilter

Represents a filter for evaluatable expressions.

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

RelationalEvaluatableExpressionFilterDependencies

Service dependencies parameter class for RelationalEvaluatableExpressionFilter

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

RelationalGroupByResultExpression

An expression that represents creation of a grouping for relational provider in ShaperExpression.

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

RelationalGroupByShaperExpression

An expression that represents creation of a grouping element in ShaperExpression for relational providers.

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

RelationalMemberTranslatorProvider

Provides translations for LINQ MemberExpression expressions by dispatching to multiple specialized member translators.

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

RelationalMemberTranslatorProviderDependencies

Service dependencies parameter class for RelationalMemberTranslatorProvider

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

RelationalMethodCallTranslatorProvider

Provides translations for LINQ MethodCallExpression expressions by dispatching to multiple specialized method call translators.

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

RelationalMethodCallTranslatorProviderDependencies

Service dependencies parameter class for RelationalMethodCallTranslatorProvider

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

RelationalParameterBasedSqlProcessor

A class that processes the query expression after parameter values are known.

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

RelationalParameterBasedSqlProcessorDependencies

Service dependencies parameter class for Microsoft.EntityFrameworkCore.Query.Internal.RelationalParameterBasedSqlProcessorFactory

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

RelationalQueryableMethodTranslatingExpressionVisitor

A class that translates queryable methods in a query.

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

RelationalQueryableMethodTranslatingExpressionVisitor.RelationalInferredTypeMappingApplier

A visitor executed at the end of translation, which verifies that all SqlExpression nodes have a type mapping, and applies type mappings inferred for queryable constants (VALUES) and parameters (e.g. OPENJSON) back on their root tables.

RelationalQueryableMethodTranslatingExpressionVisitorDependencies

Service dependencies parameter class for RelationalQueryableMethodTranslatingExpressionVisitor

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

RelationalQueryCompilationContext

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.

RelationalQueryCompilationContextDependencies

Service dependencies parameter class for RelationalQueryCompilationContext

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

RelationalQueryCompilationContextFactory

A relational factory for instances of QueryCompilationContext.

RelationalQueryContext

The principal data structure used by a compiled relational query during execution.

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

RelationalQueryContextDependencies

Service dependencies parameter class for RelationalQueryContext

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

RelationalQueryContextFactory

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.

RelationalQueryModelVisitor

The default relational Remotion.Linq.QueryModel visitor.

RelationalQueryModelVisitorDependencies

Service dependencies parameter class for RelationalQueryModelVisitorFactory

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

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

RelationalQueryModelVisitorFactory

A factory for instances of EntityQueryModelVisitor.

RelationalQueryRootProcessor

A visitor which adds additional query root nodes during preprocessing.

RelationalQueryTranslationPostprocessor

A class that post-processes the translated query. This class allows to process the generated server query expression and the associated shaper expression.

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

RelationalQueryTranslationPostprocessorDependencies

Service dependencies parameter class for RelationalQueryTranslationPostprocessor

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

RelationalQueryTranslationPreprocessor

A class that preprocesses the query before translation.

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

RelationalQueryTranslationPreprocessorDependencies

Service dependencies parameter class for RelationalQueryTranslationPreprocessor

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

RelationalShapedQueryCompilingExpressionVisitor

A class that compiles the shaper expression for given shaped query expression.

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

RelationalShapedQueryCompilingExpressionVisitorDependencies

Service dependencies parameter class for RelationalShapedQueryCompilingExpressionVisitor

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

RelationalSplitCollectionShaperExpression

An expression that represents creation of a collection during split query for relational provider in ShaperExpression.

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

RelationalSqlTranslatingExpressionVisitor

A class that translates expressions to corresponding SQL representation.

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

RelationalSqlTranslatingExpressionVisitorDependencies

Service dependencies parameter class for RelationalSqlTranslatingExpressionVisitorFactory

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

RelationalSqlTranslatingExpressionVisitorFactory

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.

RelationalStructuralTypeShaperExpression

An expression that represents creation of an entity instance for a relational provider in ShaperExpression.

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

ReplacingExpressionVisitor

An expression visitor that replaces one expression with another in given expression tree.

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

ResultOperatorHandler

The default client-eval result operator handler.

ResultOperatorHandlerDependencies

Service dependencies parameter class for ResultOperatorHandler

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

Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.

SetPropertyCalls<TSource>

Supports specifying property and value to be set in ExecuteUpdate method with chaining multiple calls for updating multiple columns.

This type does not have any constructor or implementation since it is used inside LINQ query solely for the purpose of creating expression tree.

ShapedQueryCompilingExpressionVisitor

A class that compiles the shaper expression for given shaped query expression.

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

ShapedQueryCompilingExpressionVisitorDependencies

Service dependencies parameter class for ShapedQueryCompilingExpressionVisitor

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

ShapedQueryExpression

An expression that combines a query expression and shaper expression.

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

SqlExpressionFactory

A factory for creating SqlExpression instances.

SqlExpressionFactoryDependencies

Service dependencies parameter class for SqlExpressionFactory

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

SqlExpressionVisitor

A class that visits a SQL expression tree.

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

SqlNullabilityProcessor

A class that processes a SQL tree based on nullability of nodes to apply null semantics in use and optimize it based on parameter values.

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

StructuralTypeProjectionExpression

An expression that represents an entity in the projection of SelectExpression.

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

StructuralTypeShaperExpression

An expression that represents creation of a structural type instance in ShaperExpression.

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

TransparentIdentifierFactory

A factory to create transparent identifier to create during query processing. Transparent identifier is struct of outer and inner elements which is generally created as a result of join methods as intermediate type to hold values from both sources.

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

Structs

AsyncEnumerable<TResult>

Represents an asynchronous sequence produced by executing a compiled query.

CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey

A key that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

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

EntityLoadInfo

Information required to create an instance of an entity based on a row of data returned from a query.

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

EntityMaterializerSourceParameters

Parameter object for IEntityMaterializerSource.

RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey

A key that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

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

Interfaces

IAggregateMethodCallTranslator

A SQL translator for LINQ MethodCallExpression expression representing an aggregate function.

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

IAggregateMethodCallTranslatorPlugin

Represents plugin for IAggregateMethodCallTranslator.

IAggregateMethodCallTranslatorProvider

Provides translations for LINQ MethodCallExpression expressions which represents aggregate methods.

IAsyncQueryProvider

Defines method to execute queries asynchronously that are described by an IQueryable object.

ICompiledQueryCacheKeyGenerator

Creates keys that uniquely identifies a query. This is used to store and lookup compiled versions of a query in a cache.

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

IEntityMaterializerSource

Defines a source for generating Expression trees that read values from a ValueBuffer or creates entity instances.

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

IEntityQueryModelVisitorFactory

A factory for creating EntityQueryModelVisitors.

IEvaluatableExpressionFilter

Represents a filter for evaluatable expressions.

IEvaluatableExpressionFilterPlugin

Represents a plugin evaluatable expression filter.

IIncludableQueryable<TEntity,TProperty>

Supports queryable Include/ThenInclude chaining operators.

IMemberTranslator

A SQL translator for LINQ MemberExpression expression.

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

IMemberTranslatorPlugin

Represents plugin for IMemberTranslator.

IMemberTranslatorProvider

Provides translations for LINQ MemberExpression expressions.

IMethodCallTranslator

A SQL translator for LINQ MethodCallExpression expression.

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

IMethodCallTranslatorPlugin

Represents plugin for IMethodCallTranslator.

IMethodCallTranslatorProvider

Provides translations for LINQ MethodCallExpression expressions which represents scalar methods.

INavigationExpansionExtensibilityHelper

Service which helps with various aspects of navigation expansion extensibility.

IParameterValues
IPrintableExpression

An interface that allows printing via ExpressionPrinter.

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

IQueryableMethodTranslatingExpressionVisitorFactory

A factory for creating QueryableMethodTranslatingExpressionVisitor instances.

IQueryCompilationContextFactory

A factory for creating QueryCompilationContext instances.

IQueryContextFactory

Factory for QueryContext instances.

IQueryingEnumerable

Interface that can be implemented by a database provider's IEnumerable implementation to provide the query string for debugging purposes.

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

IQueryMethodProvider

Provides reflection objects for late-binding to relational query operations.

IQuerySqlGeneratorFactory

A factory for creating QuerySqlGenerator instances.

IQueryTranslationPostprocessorFactory

A factory for creating QueryTranslationPostprocessor instances.

IQueryTranslationPreprocessorFactory

A factory for creating QueryTranslationPreprocessor instances.

IRelationalParameterBasedSqlProcessorFactory

A factory for creating RelationalParameterBasedSqlProcessor instances.

IRelationalQueryStringFactory

Implemented by database providers to generate the query string for ToQueryString(IQueryable).

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

IRelationalResultOperatorHandler

A relational-specific handler for Remotion.Linq.Clauses.ResultOperatorBase instances.

IRelationalSqlTranslatingExpressionVisitorFactory

A factory for creating RelationalSqlTranslatingExpressionVisitor instances.

IResultOperatorHandler

A handler for Remotion.Linq.Clauses.ResultOperatorBase instances.

IShapedQueryCompilingExpressionVisitorFactory

A factory for creating ShapedQueryCompilingExpressionVisitor instances.

ISqlExpressionFactory

A factory for creating SqlExpression instances.

Enums

ResultCardinality

An enum that represents the cardinality of query result.

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