CompiledQueryCacheKeyGenerator.CompiledQueryCacheKey 构造函数

定义

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)

参数

query
Expression

要为其生成密钥的查询。

model
IModel

查询所针对的模型。

queryTrackingBehavior
QueryTrackingBehavior

查询结果的跟踪行为。

async
Boolean

一个值,该值指示查询是否将以异步方式执行。

适用于