CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey Constructor
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.
Initializes a new instance of the CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey class.
public CompiledQueryCacheKey (System.Linq.Expressions.Expression query, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.QueryTrackingBehavior queryTrackingBehavior, bool async);
new Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.QueryTrackingBehavior * bool -> Microsoft.EntityFrameworkCore.Query.CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey
Public Sub New (query As Expression, model As IModel, queryTrackingBehavior As QueryTrackingBehavior, async As Boolean)
Parameters
- query
- Expression
The query to generate the key for.
- model
- IModel
The model that queries is written against.
- queryTrackingBehavior
- QueryTrackingBehavior
The tracking behavior for results of the query.
- async
- Boolean
A value indicating whether the query will be executed asynchronously.
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