RelationalQueryContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class RelationalQueryContext : Microsoft.EntityFrameworkCore.Query.QueryContext
type RelationalQueryContext = class
inherit QueryContext
Public Class RelationalQueryContext
Inherits QueryContext
- Inheritance
Constructors
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, IStateManager, IConcurrencyDetector) |
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. |
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, LazyRef<IStateManager>, IConcurrencyDetector, IExecutionStrategyFactory) |
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. |
RelationalQueryContext(QueryContextDependencies, Func<IQueryBuffer>, IRelationalConnection, IExecutionStrategyFactory) |
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. |
RelationalQueryContext(QueryContextDependencies, RelationalQueryContextDependencies) |
Creates a new RelationalQueryContext instance. This type is typically used by database providers (and other extensions). It is generally not used in application code. |
Properties
CancellationToken |
The cancellation token to use while executing the query. (Inherited from QueryContext) |
CommandLogger |
The command logger to use while executing the query. |
CommandLogger |
The command logger to use while executing the query. (Inherited from QueryContext) |
ConcurrencyDetector |
The concurrency detector to use while executing the query. (Inherited from QueryContext) |
Connection |
Gets the active relational connection. |
Context |
The current DbContext in using while executing the query. (Inherited from QueryContext) |
Dependencies |
Dependencies for this service. (Inherited from QueryContext) |
ExceptionDetector |
The exception detector to use while executing the query. (Inherited from QueryContext) |
ExecutionStrategy |
The execution strategy to use while executing the query. (Inherited from QueryContext) |
ExecutionStrategyFactory |
The execution strategy factory. |
ExecutionStrategyFactory |
Obsolete.
The execution strategy factory to use while executing the query. (Inherited from QueryContext) |
ParameterValues |
The parameter values to use while executing the query. (Inherited from QueryContext) |
QueryBuffer |
The query buffer. (Inherited from QueryContext) |
QueryLogger |
The query logger to use while executing the query. (Inherited from QueryContext) |
QueryProvider |
Obsolete.
The query provider. (Inherited from QueryContext) |
RelationalDependencies |
Relational provider-specific dependencies for this service. |
RelationalQueryStringFactory |
A factory for creating a readable query string from a DbCommand |
Semaphore |
Gets a semaphore used to serialize async queries. |
StateManager |
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. (Inherited from QueryContext) |
Methods
AddParameter(String, Object) |
Adds a parameter to ParameterValues for this query. (Inherited from QueryContext) |
BeginIncludeScope() |
Begins an include scope. |
BeginTrackingQuery() |
Notify the state manager that a tracking query is starting. (Inherited from QueryContext) |
DeregisterValueBufferCursor(IValueBufferCursor) |
Deregisters the value buffer cursor described by valueBufferCursor. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from QueryContext) |
EndIncludeScope() |
Ends an include scope. |
GetIncludeValueBuffer(Int32) |
Gets the include value buffer for a given query index. |
InitializeStateManager(Boolean) |
Initializes the Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager to be used with this QueryContext. (Inherited from QueryContext) |
RegisterValueBufferCursor(IValueBufferCursor, Nullable<Int32>) |
Registers a value buffer cursor. |
RegisterValueBufferCursorAsync(IValueBufferCursor, Nullable<Int32>, CancellationToken) |
Asynchronously registers a value buffer cursor. |
RemoveParameter(String) |
Removes a parameter by name. (Inherited from QueryContext) |
SetNavigationIsLoaded(Object, INavigation) |
Sets the navigation as loaded. (Inherited from QueryContext) |
SetNavigationIsLoaded(Object, INavigationBase) |
Sets the navigation for given entity as loaded. (Inherited from QueryContext) |
SetParameter(String, Object) |
Sets a parameter value. (Inherited from QueryContext) |
StartTracking(IEntityType, Object, ISnapshot) |
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. (Inherited from QueryContext) |
StartTracking(IEntityType, Object, ValueBuffer) |
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. (Inherited from QueryContext) |
StartTracking(Object, EntityTrackingInfo) |
Start tracking an entity. (Inherited from QueryContext) |
TryGetEntry(IKey, Object[], Boolean, Boolean) |
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. (Inherited from QueryContext) |