2 instantiations of ObjectContext
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceView.cs (2)
1145
_ctx = new
ObjectContext
(_owner.ConnectionString);
1178
_ctx = new
ObjectContext
(_owner.Connection);
160 references to ObjectContext
System.Data.Entity (113)
System\Data\Common\EntityUtil.cs (2)
1131
internal static void CheckContextNull(
ObjectContext
context)
2066
return ReferenceEquals(assembly, typeof(
ObjectContext
).Assembly)
System\Data\Common\Internal\Materialization\Shaper.cs (3)
29
internal Shaper(DbDataReader reader,
ObjectContext
context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount)
81
public readonly
ObjectContext
Context;
1055
internal Shaper(DbDataReader reader,
ObjectContext
context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount, CoordinatorFactory<T> rootCoordinatorFactory, Action checkPermissions, bool readerOwned)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
67
internal Shaper<T> Create(DbDataReader reader,
ObjectContext
context, MetadataWorkspace workspace, MergeOption mergeOption, bool readerOwned)
System\Data\Common\Internal\Materialization\Translator.cs (3)
621
private static readonly Expression Shaper_Context_Options = Expression.Property(Shaper_Context, typeof(
ObjectContext
).GetProperty("ContextOptions"));
769
new Type[] { actualType, typeof(EntityKey), typeof(EntitySet), typeof(
ObjectContext
), typeof(MergeOption), typeof(Type) }, null);
795
new Type[] { actualType, typeof(EntityKey), typeof(EntitySet), typeof(
ObjectContext
), typeof(MergeOption), typeof(Type),
System\Data\Objects\CompiledQuery.cs (33)
71
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>> query) where TArg0 :
ObjectContext
98
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>> query) where TArg0 :
ObjectContext
124
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>> query) where TArg0 :
ObjectContext
149
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>> query) where TArg0 :
ObjectContext
173
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>> query) where TArg0 :
ObjectContext
196
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>> query) where TArg0 :
ObjectContext
218
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>> query) where TArg0 :
ObjectContext
239
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>> query) where TArg0 :
ObjectContext
259
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>> query) where TArg0 :
ObjectContext
278
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>> query) where TArg0 :
ObjectContext
296
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>> query) where TArg0 :
ObjectContext
313
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>> query) where TArg0 :
ObjectContext
329
public static Func<TArg0, TArg1, TArg2, TArg3, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TResult>> query) where TArg0 :
ObjectContext
344
public static Func<TArg0, TArg1, TArg2, TResult> Compile<TArg0, TArg1, TArg2, TResult>(Expression<Func<TArg0, TArg1, TArg2, TResult>> query) where TArg0 :
ObjectContext
358
public static Func<TArg0, TArg1, TResult> Compile<TArg0, TArg1, TResult>(Expression<Func<TArg0, TArg1, TResult>> query) where TArg0 :
ObjectContext
371
public static Func<TArg0, TResult> Compile<TArg0, TResult>(Expression<Func<TArg0, TResult>> query) where TArg0 :
ObjectContext
376
private TResult Invoke<TArg0, TResult>(TArg0 arg0) where TArg0 :
ObjectContext
388
private TResult Invoke<TArg0, TArg1, TResult>(TArg0 arg0, TArg1 arg1) where TArg0 :
ObjectContext
400
private TResult Invoke<TArg0, TArg1, TArg2, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2) where TArg0 :
ObjectContext
412
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3) where TArg0 :
ObjectContext
424
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4) where TArg0 :
ObjectContext
436
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5) where TArg0 :
ObjectContext
448
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6) where TArg0 :
ObjectContext
460
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7) where TArg0 :
ObjectContext
472
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8) where TArg0 :
ObjectContext
484
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9) where TArg0 :
ObjectContext
496
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10) where TArg0 :
ObjectContext
508
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11) where TArg0 :
ObjectContext
520
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12) where TArg0 :
ObjectContext
532
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13) where TArg0 :
ObjectContext
544
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13, TArg14 arg14) where TArg0 :
ObjectContext
556
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13, TArg14 arg14, TArg15 arg15) where TArg0 :
ObjectContext
568
private TResult ExecuteQuery<TResult>(
ObjectContext
context, params object[] parameterValues)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
114
ObjectContext
context = ObjectContext ?? value.Context;
System\Data\Objects\DataClasses\RelatedEnd.cs (5)
83
private
ObjectContext
_context;
223
internal
ObjectContext
ObjectContext
2295
internal void AttachContext(
ObjectContext
context, MergeOption mergeOption)
2311
internal void AttachContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
2418
internal void FindRelationshipSet(
ObjectContext
context, EntitySet entitySet, out EdmType relationshipType, out RelationshipSet relationshipSet)
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1500
internal void AttachContextToRelatedEnds(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
1537
internal void ResetContextOnRelatedEnds(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
41
internal CompiledELinqQueryState(Type elementType,
ObjectContext
context, LambdaExpression lambda, Guid cacheToken, object[] parameterValues)
236
internal static Expression Replace(LambdaExpression query,
ObjectContext
objectContext, object[] parameterValues)
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
50
internal ELinqQueryState(Type elementType,
ObjectContext
context, Expression expression)
System\Data\Objects\ELinq\Funcletizer.cs (5)
37
private readonly
ObjectContext
_rootContext;
49
ObjectContext
rootContext,
64
ObjectContext
rootContext,
80
internal static Funcletizer CreateQueryFuncletizer(
ObjectContext
rootContext)
87
internal
ObjectContext
RootContext
System\Data\Objects\ELinq\ObjectQueryProvider.cs (2)
27
private readonly
ObjectContext
_context;
36
internal ObjectQueryProvider(
ObjectContext
context)
System\Data\Objects\Internal\BaseEntityWrapper.cs (4)
69
protected BaseEntityWrapper(TEntity entity, RelationshipManager relationshipManager, EntitySet entitySet,
ObjectContext
context, MergeOption mergeOption, Type identityType)
99
public
ObjectContext
Context
147
public void AttachContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
159
public void ResetContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (2)
49
/// <param name="context">The <see cref="
ObjectContext
"/> to use when constructing the new parameter collection</param>
53
private static ObjectParameterCollection MergeParameters(
ObjectContext
context, ObjectParameterCollection sourceQueryParams, ObjectParameter[] builderMethodParams)
System\Data\Objects\Internal\EntitySqlQueryState.cs (2)
63
internal EntitySqlQueryState(Type elementType, string commandText, bool allowsLimit,
ObjectContext
context, ObjectParameterCollection parameters, Span span)
84
internal EntitySqlQueryState(Type elementType, string commandText, DbExpression expression, bool allowsLimit,
ObjectContext
context, ObjectParameterCollection parameters, Span span)
System\Data\Objects\Internal\EntityWrapper.cs (3)
41
internal EntityWrapperWithoutRelationships(TEntity entity, EntityKey key, EntitySet entitySet,
ObjectContext
context, MergeOption mergeOption, Type identityType,
102
internal EntityWrapperWithRelationships(TEntity entity, EntityKey key, EntitySet entitySet,
ObjectContext
context, MergeOption mergeOption, Type identityType,
194
protected EntityWrapper(TEntity entity, RelationshipManager relationshipManager, EntityKey key, EntitySet set,
ObjectContext
context, MergeOption mergeOption, Type identityType,
System\Data\Objects\Internal\EntityWrapperFactory.cs (3)
184
internal static IEntityWrapper WrapEntityUsingContext(object entity,
ObjectContext
context)
198
internal static IEntityWrapper WrapEntityUsingContextGettingEntry(object entity,
ObjectContext
context, out EntityEntry existingEntry)
297
internal static void UpdateNoTrackingWrapper(IEntityWrapper wrapper,
ObjectContext
context, EntitySet entitySet)
System\Data\Objects\Internal\IEntityWrapper.cs (3)
67
ObjectContext
Context { get; set; }
80
void AttachContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption);
88
void ResetContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption);
System\Data\Objects\Internal\LightweightEntityWrapper.cs (1)
56
internal LightweightEntityWrapper(TEntity entity, EntityKey key, EntitySet entitySet,
ObjectContext
context, MergeOption mergeOption, Type identityType)
System\Data\Objects\Internal\NullEntityWrapper.cs (3)
97
public
ObjectContext
Context
119
public void AttachContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
124
public void ResetContext(
ObjectContext
context, EntitySet entitySet, MergeOption mergeOption)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (3)
51
internal static ObjectQueryExecutionPlan Prepare(
ObjectContext
context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Span span, CompiledQueryParameters compiledQueryParameters, AliasGenerator aliasGenerator)
160
internal ObjectResult<TResultType> Execute<TResultType>(
ObjectContext
context, ObjectParameterCollection parameterValues)
220
internal static ObjectResult<TResultType> ExecuteCommandTree<TResultType>(
ObjectContext
context, DbQueryCommandTree query, MergeOption mergeOption)
System\Data\Objects\Internal\ObjectQueryState.cs (3)
42
private readonly
ObjectContext
_context;
81
protected ObjectQueryState(Type elementType,
ObjectContext
context, ObjectParameterCollection parameters, Span span)
117
internal
ObjectContext
ObjectContext { get { return _context; } }
System\Data\Objects\NextResultGenerator.cs (2)
24
ObjectContext
_context;
29
internal NextResultGenerator(
ObjectContext
context, EntityCommand entityCommand, EdmType[] edmTypes, ReadOnlyMetadataCollection<EntitySet> entitySets, MergeOption mergeOption, int resultSetIndex)
System\Data\Objects\ObjectContext.cs (7)
111
/// The default value is false when using <see cref="
ObjectContext
"/>.
285
/// <exception cref="ObjectDisposedException">If the <see cref="
ObjectContext
"/> instance has been disposed.</exception>
1233
ObjectContext
.GetEntitySetName(entitySetName, "entitySetName", this, out setName, out containerName);
1399
/// <exception cref="ObjectDisposedException">If the <see cref="
ObjectContext
"/> instance has been disposed.</exception>
1560
/// <exception cref="ObjectDisposedException">If the <see cref="
ObjectContext
"/> instance has been disposed.</exception>
1671
/// <exception cref="ObjectDisposedException">If the <see cref="
ObjectContext
"/> instance has been disposed.</exception>
1863
private static void GetEntitySetName(string qualifiedName, string parameterName,
ObjectContext
context, out string entityset, out string container)
System\Data\Objects\ObjectQuery.cs (1)
175
public
ObjectContext
Context
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (3)
95
public ObjectQuery (string commandText,
ObjectContext
context)
133
public ObjectQuery (string commandText,
ObjectContext
context, MergeOption mergeOption)
177
internal ObjectQuery (EntitySetBase entitySet,
ObjectContext
context, MergeOption mergeOption)
System\Data\Objects\ObjectSet.cs (1)
51
internal ObjectSet(EntitySet entitySet,
ObjectContext
context)
System\Data\Objects\ObjectStateManager.cs (5)
637
internal void PromoteKeyEntryInitialization(
ObjectContext
contextToAttach,
968
internal static int UpdateRelationships(
ObjectContext
context, MergeOption mergeOption, AssociationSet associationSet, AssociationEndMember sourceMember, EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember, IList targets, bool setIsLoaded)
1106
internal static void RemoveRelationships(
ObjectContext
context, MergeOption mergeOption, AssociationSet associationSet,
1163
internal static bool TryUpdateExistingRelationships(
ObjectContext
context, MergeOption mergeOption, AssociationSet associationSet, AssociationEndMember sourceMember, EntityKey sourceKey, IEntityWrapper wrappedSource, AssociationEndMember targetMember, EntityKey targetKey, bool setIsLoaded, out EntityState newEntryState)
2239
string navigationProperty =
ObjectContext
.ParsePropertySelectorExpression<TEntity>(navigationPropertySelector, out removedConvert);
System\Data\Objects\ObjectViewFactory.cs (4)
59
/// <see cref="
ObjectContext
"/> associated with the query from which results were obtained.
76
internal static IBindingList CreateViewForQuery<TElement>(TypeUsage elementEdmTypeUsage, IEnumerable<TElement> queryResults,
ObjectContext
objectContext, bool forceReadOnly, EntitySet singleEntitySet)
124
new Type[] { typeof(IEnumerable), typeof(
ObjectContext
), typeof(bool), typeof(EntitySet) },
259
private static TypeUsage GetOSpaceTypeUsage(TypeUsage typeUsage,
ObjectContext
objectContext)
System\Data\Objects\ObjectViewQueryResultData.cs (2)
40
private
ObjectContext
_objectContext;
70
internal ObjectViewQueryResultData(IEnumerable queryResults,
ObjectContext
objectContext, bool forceReadOnlyList, EntitySet entitySet)
System\Data\Objects\ProxyDataContractResolver.cs (1)
42
Type nonProxyType =
ObjectContext
.GetObjectType(dataContractType);
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
558
typeof(System.Data.Objects.
ObjectContext
).Assembly.Location, // System.Data.Entity.dll
System.Data.Services (13)
System\Data\Services\Caching\MetadataCache.cs (3)
47
MetadataCacheKey key = new MetadataCacheKey(serviceType, dataContextInstance as
ObjectContext
);
87
MetadataCacheKey key = new MetadataCacheKey(serviceType, dataContextInstance as
ObjectContext
);
117
internal MetadataCacheKey(Type serviceType,
ObjectContext
dataContextInstance)
System\Data\Services\DataService.cs (2)
44
/// <see cref="System.Data.Objects.
ObjectContext
" /> or another class that provides <see cref="IQueryable" />
1989
if (typeof(
ObjectContext
).IsAssignableFrom(dataContextType))
System\Data\Services\Providers\ObjectContextServiceProvider.cs (8)
90
private
ObjectContext
ObjectContext
94
return (
ObjectContext
)this.CurrentDataSource;
994
Type actualType =
ObjectContext
.GetObjectType(type);
1007
MetadataWorkspace workspace = ((
ObjectContext
)dataSourceInstance).MetadataWorkspace;
1714
private static void InitializeObjectItemCollection(
ObjectContext
objectContext, Assembly assembly)
2050
private static object CreateObject(
ObjectContext
context, Type clrType)
2353
MethodInfo genericMethod = typeof(
ObjectContext
).GetMethod("CreateQuery", WebUtil.PublicInstanceBindingFlags).MakeGenericMethod(container.ResourceType.InstanceType);
2359
generator.Emit(System.Reflection.Emit.OpCodes.Castclass, typeof(
ObjectContext
));
System.Web.DynamicData (5)
DynamicData\DynamicDataManager.cs (1)
220
e.Context = (
ObjectContext
)table.CreateContext();
DynamicData\ModelProviders\EFDataModelProvider.cs (3)
17
private
ObjectContext
_context;
25
_context = (
ObjectContext
)contextInstance ?? (
ObjectContext
)CreateContext();
DynamicData\ModelProviders\SchemaCreator.cs (1)
37
return IsValidType<
ObjectContext
>(contextType);
System.Web.Entity (28)
System\Data\WebControls\EntityDataSourceChangedEventArgs.cs (3)
20
private readonly
ObjectContext
_context;
25
internal EntityDataSourceChangedEventArgs(
ObjectContext
context, object entity)
52
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceChangingEventArgs.cs (3)
20
private readonly
ObjectContext
_context;
25
internal EntityDataSourceChangingEventArgs(
ObjectContext
context, object entity)
52
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceContextCreatedEventArgs.cs (3)
19
private readonly
ObjectContext
_context;
20
internal EntityDataSourceContextCreatedEventArgs(
ObjectContext
context)
24
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceContextCreatingEventArgs.cs (2)
19
private
ObjectContext
_context;
21
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceContextDisposingEventArgs.cs (3)
20
private readonly
ObjectContext
_context = null;
22
internal EntityDataSourceContextDisposingEventArgs(
ObjectContext
instance)
27
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (3)
79
internal ObjectQuery<T> BuildBasicQuery(
ObjectContext
context, bool computeCount)
88
internal ObjectQuery<T> CompleteBuild(ObjectQuery<T> queryT,
ObjectContext
context, bool computeCount, bool wasExtended)
282
internal static ObjectQuery<T> ConstructQuery<T>(
ObjectContext
context,
System\Data\WebControls\EntityDataSourceSelectedEventArgs.cs (3)
21
private readonly
ObjectContext
_context;
28
internal EntityDataSourceSelectedEventArgs(
ObjectContext
context,
60
public
ObjectContext
Context
System\Data\WebControls\EntityDataSourceView.cs (5)
117
public void CreateCollection(
ObjectContext
context, EntitySet entitySet, EntityType CSpaceFilteredEntityType, ManagerMode mode)
142
private
ObjectContext
_ctx = null;
1138
_ctx = (
ObjectContext
)ctxInfo.Invoke(new object[0]);
1186
contextType = typeof(
ObjectContext
);
1552
private
ObjectContext
Context
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (3)
41
private readonly
ObjectContext
_context;
57
internal EntityDataSourceWrapperCollection(
ObjectContext
context, EntitySet entitySet, EntityType restrictedEntityType)
174
internal
ObjectContext
Context