44 references to ObjectContext
System.Data.Entity (44)
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (9)
59
this.
ObjectContext
.EnsureMetadata();
63
bool useCSharpNullComparisonBehavior = this.
ObjectContext
.ContextOptions.UseCSharpNullComparisonBehavior;
83
DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.
ObjectContext
.MetadataWorkspace, DataSpace.CSpace, queryExpression);
84
plan = ObjectQueryExecutionPlan.Prepare(this.
ObjectContext
, tree, this.ElementType, mergeOption, converter.PropagatedSpan, parameters, converter.AliasGenerator);
94
QueryCacheManager cacheManager = this.
ObjectContext
.MetadataWorkspace.GetQueryCacheManager();
113
DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.
ObjectContext
.MetadataWorkspace, DataSpace.CSpace, queryExpression);
142
plan = ObjectQueryExecutionPlan.Prepare(this.
ObjectContext
, tree, this.ElementType, mergeOption, converter.PropagatedSpan, parameters, converter.AliasGenerator);
206
return CreateDonateableExpressionVisitor.Replace((LambdaExpression)base.Expression,
ObjectContext
, _parameterValues);
218
Funcletizer funcletizer = Funcletizer.CreateCompiledQueryEvaluationFuncletizer(this.
ObjectContext
, lambda.Parameters.First(), lambda.Parameters.Skip(1).ToList().AsReadOnly());
System\Data\Objects\ELinq\ELinqQueryState.cs (8)
108
this.
ObjectContext
.ContextOptions.UseCSharpNullComparisonBehavior != this._useCSharpNullComparisonBehavior)
118
this.
ObjectContext
.EnsureMetadata();
140
this._useCSharpNullComparisonBehavior = this.
ObjectContext
.ContextOptions.UseCSharpNullComparisonBehavior;
179
cacheManager = this.
ObjectContext
.MetadataWorkspace.GetQueryCacheManager();
191
DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.
ObjectContext
.MetadataWorkspace, DataSpace.CSpace, queryExpression);
192
plan = ObjectQueryExecutionPlan.Prepare(this.
ObjectContext
, tree, this.ElementType, mergeOption, converter.PropagatedSpan, null, converter.AliasGenerator);
246
ObjectQueryState retState = new ELinqQueryState(this.ElementType, this.
ObjectContext
, includeCall);
281
Funcletizer funcletizer = Funcletizer.CreateQueryFuncletizer(this.
ObjectContext
);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
652
if (!object.ReferenceEquals(_funcletizer.RootContext, inlineQuery.QueryState.
ObjectContext
))
System\Data\Objects\ELinq\Funcletizer.cs (1)
563
if (!object.ReferenceEquals(_funcletizer._rootContext, inlineQuery.QueryState.
ObjectContext
))
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (8)
123
queryParams = new ObjectParameterCollection(sourceQuery.
ObjectContext
.Perspective);
130
EntitySqlQueryState newState = new EntitySqlQueryState(elementType, queryText.ToString(), allowsLimit, sourceQuery.
ObjectContext
, queryParams, newSpan);
166
if (!object.ReferenceEquals(leftQuery.
ObjectContext
, rightQuery.
ObjectContext
))
225
return NewBuilderQuery(query, elementType, builder, null, MergeParameters(query.
ObjectContext
, query.Parameters, parameters));
276
return NewBuilderQuery(query, query.ElementType, builder, allowsLimit, query.Span, MergeParameters(query.
ObjectContext
, query.Parameters, parameters));
362
return NewBuilderQuery(query, typeof(DbDataRecord), builder, null, MergeParameters(query.
ObjectContext
, query.Parameters, parameters));
552
return NewBuilderQuery(query, query.ElementType, builder, query.Span, MergeParameters(query.
ObjectContext
, query.Parameters, parameters));
System\Data\Objects\Internal\EntitySqlQueryState.cs (8)
133
ObjectQueryState retState = new EntitySqlQueryState(this.ElementType, _queryText, _queryExpression, _allowsLimit, this.
ObjectContext
, ObjectParameterCollection.DeepCopy(this.Parameters), Span.IncludeIn(this.Span, includePath));
141
this.
ObjectContext
.EnsureMetadata();
174
this.
ObjectContext
.DefaultContainerName,
182
cacheManager = this.
ObjectContext
.MetadataWorkspace.GetQueryCacheManager();
195
DbQueryCommandTree tree = DbQueryCommandTree.FromValidExpression(this.
ObjectContext
.MetadataWorkspace, DataSpace.CSpace, queryExpression);
196
plan = ObjectQueryExecutionPlan.Prepare(this.
ObjectContext
, tree, this.ElementType, mergeOption, this.Span, null, DbExpressionBuilder.AliasGenerator);
244
this.
ObjectContext
.Perspective.TryGetTypeByName(
259
this.
ObjectContext
.Perspective, // Perspective
System\Data\Objects\Internal\ObjectQueryState.cs (1)
132
_parameters = new ObjectParameterCollection(
ObjectContext
.Perspective);
System\Data\Objects\ObjectQuery.cs (2)
179
return this._state.
ObjectContext
;
285
tResultType = this._state.
ObjectContext
.Perspective.MetadataWorkspace.GetOSpaceTypeUsage(tResultType);
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (3)
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) ||
475
this.QueryState.
ObjectContext
.MetadataWorkspace.ImplicitLoadAssemblyForType(typeof(TResultType), System.Reflection.Assembly.GetCallingAssembly());
System\Data\Objects\ObjectQuery_TResultType.cs (3)
168
this.QueryState.
ObjectContext
.EnsureConnection();
173
return execPlan.Execute<T>(this.QueryState.
ObjectContext
, this.QueryState.Parameters);
177
this.QueryState.
ObjectContext
.ReleaseConnection();