QueryContext QueryContext Class

Definition

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

public class QueryContext
Public Class QueryContext
Inheritance
System.ObjectSystem.Object
QueryContextQueryContext

Constructors

QueryContext(Func, LazyRef, IConcurrencyDetector) QueryContext(Func(Of IQueryBuffer), LazyRef(Of 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.

public QueryContext(Func<IQueryBuffer> queryBufferFactory, LazyRef<IStateManager> stateManager, IConcurrencyDetector concurrencyDetector)
Public Sub New(queryBufferFactory As Func(Of IQueryBuffer), stateManager As LazyRef(Of IStateManager), concurrencyDetector As IConcurrencyDetector)
Parameters
queryBufferFactory
System.Func<IQueryBuffer> System.Func(Of IQueryBuffer)

Properties

CancellationToken CancellationToken

Gets or sets the cancellation token.

public virtual CancellationToken CancellationToken { get; set; }
Public Overridable Property CancellationToken As CancellationToken
Value
System.Threading.CancellationToken System.Threading.CancellationToken

The cancellation token.

ConcurrencyDetector ConcurrencyDetector

Gets the concurrency detector.

public virtual IConcurrencyDetector ConcurrencyDetector { get; }
Public Overridable ReadOnly Property ConcurrencyDetector As IConcurrencyDetector
Value
IConcurrencyDetector IConcurrencyDetector

The concurrency detector.

ParameterValues ParameterValues

The parameter values.

public virtual IReadOnlyDictionary<string, object> ParameterValues { get; }
Public Overridable ReadOnly Property ParameterValues As IReadOnlyDictionary(Of String, Object)
Value
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)

QueryBuffer QueryBuffer

The query buffer.

public virtual IQueryBuffer QueryBuffer { get; }
Public Overridable ReadOnly Property QueryBuffer As IQueryBuffer

QueryProvider QueryProvider

The query provider.

public virtual IQueryProvider QueryProvider { get; }
Public Overridable ReadOnly Property QueryProvider As IQueryProvider
Value
System.Linq.IQueryProvider System.Linq.IQueryProvider

The query provider.

StateManager StateManager

The state manager.

public virtual LazyRef<IStateManager> StateManager { get; }
Public Overridable ReadOnly Property StateManager As LazyRef(Of IStateManager)
Value
LazyRef<IStateManager> LazyRef(Of IStateManager)

The state manager.

Methods

AddParameter(String, Object) AddParameter(String, Object)

Adds a parameter.

public virtual void AddParameter(string name, object value)
Public Overridable Sub AddParameter(name As String, value As Object)
Parameters
name
System.String System.String

The name.

value
System.Object System.Object

The value.

BeginTrackingQuery() BeginTrackingQuery()

Notify the state manager that a tracking query is starting.

public virtual void BeginTrackingQuery()
Public Overridable Sub BeginTrackingQuery

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

RemoveParameter(String) RemoveParameter(String)

Removes a parameter by name.

public virtual object RemoveParameter(string name)
Public Overridable Function RemoveParameter(name As String) As Object
Parameters
name
System.String System.String

The name.

Returns
System.Object System.Object

The parameter value.

StartTracking(Object, EntityTrackingInfo) StartTracking(Object, EntityTrackingInfo)

Start tracking an entity.

public virtual void StartTracking(object entity, EntityTrackingInfo entityTrackingInfo)
Public Overridable Sub StartTracking(entity As Object, entityTrackingInfo As EntityTrackingInfo)
Parameters
entity
System.Object System.Object

The entity.

entityTrackingInfo
EntityTrackingInfo EntityTrackingInfo

Information describing how to track the entity.

ToString() ToString()

Inherited from System.Object