CompiledQueryCache CompiledQueryCache Class

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.

Syntax

Declaration

public class CompiledQueryCache : ICompiledQueryCachePublic Class CompiledQueryCache
    Implements ICompiledQueryCache

Inheritance Hierarchy

  • System.Object
    System.Object
  • CompiledQueryCache
    CompiledQueryCache

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.

Fields 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.

Methods 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.

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.

Constructors

  • CompiledQueryCache(IDbContextServices)
    CompiledQueryCache(IDbContextServices)

    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 CompiledQueryCache(IDbContextServices contextServices)Public Sub New(contextServices As IDbContextServices)

    Parameters

Fields

  • CompiledQueryParameterPrefix
    CompiledQueryParameterPrefix

    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 const string CompiledQueryParameterPrefix = "__"Public Const CompiledQueryParameterPrefix As String = "__"

Methods

  • GetOrAddAsyncQuery<TResult>(Object, Func<Func<QueryContext, IAsyncEnumerable<TResult>>>)
    GetOrAddAsyncQuery(Of TResult)(Object, Func(Of Func(Of QueryContext, IAsyncEnumerable(Of TResult))))

    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 virtual Func<QueryContext, IAsyncEnumerable<TResult>> GetOrAddAsyncQuery<TResult>(object cacheKey, Func<Func<QueryContext, IAsyncEnumerable<TResult>>> compiler)Public Overridable Function GetOrAddAsyncQuery(Of TResult)(cacheKey As Object, compiler As Func(Of Func(Of QueryContext, IAsyncEnumerable(Of TResult)))) As Func(Of QueryContext, IAsyncEnumerable(Of TResult))

    Parameters

    • cacheKey
      System.Object
      System.Object
    • compiler
      System.Func<TResult><System.Func<T, TResult><QueryContext, IAsyncEnumerable<><TResult>>>
      System.Func<TResult>(Of System.Func<T, TResult>(Of QueryContext, IAsyncEnumerable<>(Of TResult)))

    Returns

    • System.Func<T, TResult><QueryContext, IAsyncEnumerable<><TResult>>
      System.Func<T, TResult>(Of QueryContext, IAsyncEnumerable<>(Of TResult))
  • GetOrAddQuery<TResult>(Object, Func<Func<QueryContext, TResult>>)
    GetOrAddQuery(Of TResult)(Object, Func(Of Func(Of QueryContext, TResult)))

    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 virtual Func<QueryContext, TResult> GetOrAddQuery<TResult>(object cacheKey, Func<Func<QueryContext, TResult>> compiler)Public Overridable Function GetOrAddQuery(Of TResult)(cacheKey As Object, compiler As Func(Of Func(Of QueryContext, TResult))) As Func(Of QueryContext, TResult)

    Parameters

    • cacheKey
      System.Object
      System.Object
    • compiler
      System.Func<TResult><System.Func<T, TResult><QueryContext, TResult>>
      System.Func<TResult>(Of System.Func<T, TResult>(Of QueryContext, TResult))

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll