CompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates the cache key for the given query.
public virtual object GenerateCacheKey (System.Linq.Expressions.Expression query, bool async);
abstract member GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
override this.GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
Public Overridable Function GenerateCacheKey (query As Expression, async As Boolean) As Object
Parameters
- query
- Expression
The query to get the cache key for.
- async
- Boolean
A value indicating whether the query will be executed asynchronously.
Returns
The cache key.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework