ICompiledQueryCache ICompiledQueryCache Interface

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 interface ICompiledQueryCachePublic Interface ICompiledQueryCache

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.

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.

    Func<QueryContext, IAsyncEnumerable<TResult>> GetOrAddAsyncQuery<TResult>(object cacheKey, Func<Func<QueryContext, IAsyncEnumerable<TResult>>> compiler)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.

    Func<QueryContext, TResult> GetOrAddQuery<TResult>(object cacheKey, Func<Func<QueryContext, TResult>> compiler)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