Class RelationalCompiledQueryCacheKeyGenerator
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
public class RelationalCompiledQueryCacheKeyGenerator : CompiledQueryCacheKeyGenerator
- Inheritance
-
RelationalCompiledQueryCacheKeyGenerator
Constructors
RelationalCompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies, RelationalCompiledQueryCacheKeyGeneratorDependencies)
Initializes a new instance of the RelationalCompiledQueryCacheKeyGenerator class.
public RelationalCompiledQueryCacheKeyGenerator(CompiledQueryCacheKeyGeneratorDependencies dependencies, RelationalCompiledQueryCacheKeyGeneratorDependencies relationalDependencies)
Parameters
dependenciesCompiledQueryCacheKeyGeneratorDependenciesParameter object containing dependencies for this service.
relationalDependenciesRelationalCompiledQueryCacheKeyGeneratorDependenciesParameter object containing relational dependencies for this service.
Properties
RelationalDependencies
Relational provider-specific dependencies for this service.
protected virtual RelationalCompiledQueryCacheKeyGeneratorDependencies RelationalDependencies { get; }
Property Value
Methods
GenerateCacheKey(Expression, bool)
public override object GenerateCacheKey(Expression query, bool async)
Parameters
queryExpressionasyncbool
Returns
GenerateCacheKeyCore(Expression, bool)
Generates the cache key for the given query.
protected RelationalCompiledQueryCacheKeyGenerator.RelationalCompiledQueryCacheKey GenerateCacheKeyCore(Expression query, bool async)
Parameters
queryExpressionThe query to get the cache key for.
asyncboolA value indicating whether the query will be executed asynchronously.