CompiledQueryCache CompiledQueryCache Class

Definition

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 class CompiledQueryCache : ICompiledQueryCache
Public Class CompiledQueryCache
    Implements ICompiledQueryCache
Inheritance
System.ObjectSystem.Object
CompiledQueryCacheCompiledQueryCache
Implements

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

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetOrAddAsyncQuery(Object, Func<>>>) 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))
Type Parameters
TResult
Parameters
cacheKey
System.Object System.Object
compiler
System.Func<System.Func<QueryContext, IAsyncEnumerable<TResult>>> System.Func(Of System.Func(Of QueryContext, IAsyncEnumerable(Of TResult)))
Returns
System.Func<QueryContext, IAsyncEnumerable<TResult>> System.Func(Of QueryContext, IAsyncEnumerable(Of TResult))

GetOrAddQuery(Object, Func<>>) 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)
Type Parameters
TResult
Parameters
cacheKey
System.Object System.Object
compiler
System.Func<System.Func<QueryContext, TResult>> System.Func(Of System.Func(Of QueryContext, TResult))
Returns
System.Func<QueryContext, TResult> System.Func(Of QueryContext, TResult)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object