QueryContext QueryContext Class

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

Syntax

Declaration

public class QueryContextPublic Class QueryContext

Inheritance Hierarchy

  • System.Object
    System.Object
  • QueryContext
    QueryContext

Inherited Members

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

Gets or sets the cancellation token.

Gets the concurrency detector.

The parameter values.

The query buffer.

The query provider.

The state manager.

Methods summary

Adds a parameter.

Notify the state manager that a tracking query is starting.

Removes a parameter by name.

Start tracking an entity.

Constructors

  • QueryContext(Func<IQueryBuffer>, LazyRef<IStateManager>, 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

Properties

  • CancellationToken
    CancellationToken

    Gets or sets the cancellation token.

    public virtual CancellationToken CancellationToken { get; set; }Public Overridable Property CancellationToken As CancellationToken

    Property 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

    Property Value

  • ParameterValues
    ParameterValues

    The parameter values.

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

    Property Value

    • System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
  • QueryBuffer
    QueryBuffer

    The query buffer.

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

    Property Value

  • QueryProvider
    QueryProvider

    The query provider.

    public virtual IQueryProvider QueryProvider { get; }Public Overridable ReadOnly Property QueryProvider As IQueryProvider

    Property 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)

    Property Value

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

Details

Assembly

Microsoft.EntityFrameworkCore.dll