43 references to QueryState
System.Data.Entity (43)
System\Data\Objects\ELinq\ExpressionConverter.cs (4)
652if (!object.ReferenceEquals(_funcletizer.RootContext, inlineQuery.QueryState.ObjectContext)) 669EntitySqlQueryState esqlState = (EntitySqlQueryState)inlineQuery.QueryState; 677ObjectParameterCollection objectParameters = inlineQuery.QueryState.Parameters; 691foreach (ObjectParameter prm in inlineQuery.QueryState.Parameters)
System\Data\Objects\ELinq\Funcletizer.cs (5)
525MergeOption? originalMergeOption = originalQuery.QueryState.UserSpecifiedMergeOption; 528_recompileRequiredDelegates.Add(() => originalQuery.QueryState.UserSpecifiedMergeOption != originalMergeOption); 536currentQuery.QueryState.UserSpecifiedMergeOption != originalMergeOption; 563if (!object.ReferenceEquals(_funcletizer._rootContext, inlineQuery.QueryState.ObjectContext)) 571if (!(inlineQuery.QueryState is EntitySqlQueryState))
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (23)
51return (query.QueryState is ELinqQueryState); 137this.QueryState.UserSpecifiedMergeOption = mergeOption; 181this.QueryState.UserSpecifiedMergeOption = mergeOption; 255return new ObjectQuery<T>(EntitySqlQueryBuilder.Distinct(this.QueryState)); 280return new ObjectQuery<T>(EntitySqlQueryBuilder.Except(this.QueryState, query.QueryState)); 315return new ObjectQuery<DbDataRecord>(EntitySqlQueryBuilder.GroupBy(this.QueryState, this.Name, keys, projection, parameters)); 339return new ObjectQuery<T>(EntitySqlQueryBuilder.Intersect(this.QueryState, query.QueryState)); 360this.QueryState.ObjectContext.MetadataWorkspace.ImplicitLoadAssemblyForType(typeof(TResultType), System.Reflection.Assembly.GetCallingAssembly()); 369if (!this.QueryState.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.OSpace).TryGetType(clrOfType.Name, clrOfType.Namespace ?? string.Empty, out ofType) || 375return new ObjectQuery<TResultType>(EntitySqlQueryBuilder.OfType(this.QueryState, ofType, clrOfType)); 410return new ObjectQuery<T>(EntitySqlQueryBuilder.OrderBy(this.QueryState, this.Name, keys, parameters)); 442return new ObjectQuery<DbDataRecord>(EntitySqlQueryBuilder.Select(this.QueryState, this.Name, projection, parameters)); 475this.QueryState.ObjectContext.MetadataWorkspace.ImplicitLoadAssemblyForType(typeof(TResultType), System.Reflection.Assembly.GetCallingAssembly()); 477return new ObjectQuery<TResultType>(EntitySqlQueryBuilder.SelectValue(this.QueryState, this.Name, projection, parameters, typeof(TResultType))); 520return new ObjectQuery<T>(EntitySqlQueryBuilder.Skip(this.QueryState, this.Name, keys, count, parameters)); 552return new ObjectQuery<T>(EntitySqlQueryBuilder.Top(this.QueryState, this.Name, count, parameters)); 577return new ObjectQuery<T>(EntitySqlQueryBuilder.Union(this.QueryState, query.QueryState)); 598return new ObjectQuery<T>(EntitySqlQueryBuilder.UnionAll(this.QueryState, query.QueryState)); 630return new ObjectQuery<T>(EntitySqlQueryBuilder.Where(this.QueryState, this.Name, predicate, parameters));
System\Data\Objects\ObjectQuery_TResultType.cs (11)
61return new ObjectQuery<T>(this.QueryState.Include(this, path)); 125if (!this.QueryState.TryGetExpression(out retExpr)) 131if (this.QueryState.UserSpecifiedMergeOption.HasValue) 136retExpr = Expression.Call(retExpr, mergeAsMethod, Expression.Constant(this.QueryState.UserSpecifiedMergeOption.Value)); 139if (null != this.QueryState.Span) 144retExpr = Expression.Call(retExpr, includeSpanMethod, Expression.Constant(this.QueryState.Span)); 168this.QueryState.ObjectContext.EnsureConnection(); 172ObjectQueryExecutionPlan execPlan = this.QueryState.GetExecutionPlan(forMergeOption); 173return execPlan.Execute<T>(this.QueryState.ObjectContext, this.QueryState.Parameters); 177this.QueryState.ObjectContext.ReleaseConnection();