public EntityResultFindingExpressionVisitor( [NotNull] QueryCompilationContext queryCompilationContext) { Check.NotNull(queryCompilationContext, nameof(queryCompilationContext)); _queryCompilationContext = queryCompilationContext; _untrackedQuerySources = new HashSet <IQuerySource>( _queryCompilationContext .GetCustomQueryAnnotations(EntityFrameworkQueryableExtensions.AsNoTrackingMethodInfo) .Select(qa => qa.QuerySource)); }
public EntityResultFindingExpressionVisitor( [NotNull] IModel model, [NotNull] IEntityTrackingInfoFactory entityTrackingInfoFactory, [NotNull] QueryCompilationContext queryCompilationContext) { _model = model; _entityTrackingInfoFactory = entityTrackingInfoFactory; _queryCompilationContext = queryCompilationContext; _untrackedQuerySources = new HashSet <IQuerySource>( _queryCompilationContext .GetCustomQueryAnnotations(EntityFrameworkQueryableExtensions.AsNoTrackingMethodInfo) .Select(qa => qa.QuerySource)); }