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