30 references to Query
System.Data.Entity (30)
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (17)
412BoolExpression whereClause = rewriting.Query.Condition; 712Tile<FragmentQuery> toAvoid = CreateTile(FragmentQuery.Create(_keyAttributes, BoolExpression.CreateNot(toFill.Query.Condition))); 720LeftCellWrapper fragment = _context.AllWrappersForExtent.First(lcr => lcr.FragmentQuery.Equals(toFill.Query)); 831Debug.Assert(toFill.Query.Attributes.Count > 0, "Query has no attributes?"); 836Debug.Assert(!found || rewriting.GetNamedQueries().All(q => q != TrueViewSurrogate.Query), 846FragmentQuery toFillQuery = toFill.Query; 862toFillQuery = FragmentQuery.Create(toFillQuery.Attributes, BoolExpression.CreateAndNot(toFillQuery.Condition, rewriting.Query.Condition)); 924Debug.Assert(toFill.Query.Attributes.Count == 0, "This method is used for attribute-less queries only"); 926if (!_context.TryGetCachedRewriting(toFill.Query, out rewriting)) 932_context.SetCachedRewriting(toFill.Query, rewriting); 1036if (GetVariables(tile.Query).Overlaps(connectedVariables)) 1041else if (IsTrue(tile.Query) && firstTrueView == null) 1048IsTrue(unionOfConnectedViews.Query)) // the collected views give us "True" 1059if (IsTrue(unionTile.Query)) 1086if (!usedViews.Contains(TrueViewSurrogate.Query)) 1091usedViews.Remove(TrueViewSurrogate.Query); 1100if (IsTrue(unionTile.Query))
System\Data\Mapping\ViewGeneration\QueryRewriting\Tile.cs (13)
59return false == _tileQueryProcessor.IsSatisfiable(tile.Query); 64return new TileBinaryOperator<T_Query>(arg1, arg2, TileOpKind.Union, _tileQueryProcessor.Union(arg1.Query, arg2.Query)); 69return new TileBinaryOperator<T_Query>(arg1, arg2, TileOpKind.Join, _tileQueryProcessor.Intersect(arg1.Query, arg2.Query)); 74return new TileBinaryOperator<T_Query>(arg1, arg2, TileOpKind.AntiSemiJoin, _tileQueryProcessor.Difference(arg1.Query, arg2.Query)); 153return String.Format(CultureInfo.InvariantCulture, "{0}: [{1}]", this.Description, this.Query); 157return String.Format(CultureInfo.InvariantCulture, "[{0}]", this.Query); 189get { return this.Query; } 197get { return this.Query.Description; } 202return this.Query.ToString(); 249return new TileBinaryOperator<T_Query>(newArg1, newArg2, OpKind, Query);