1 write to _context
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFDataModelProvider.cs (1)
25
_context
= (ObjectContext)contextInstance ?? (ObjectContext)CreateContext();
8 references to _context
System.Web.DynamicData (8)
DynamicData\ModelProviders\EFDataModelProvider.cs (8)
26
ContextType =
_context
.GetType();
29
EntityContainer container =
_context
.MetadataWorkspace.GetEntityContainer(
_context
.DefaultContainerName, DataSpace.CSpace);
31
_context
.MetadataWorkspace.LoadFromAssembly(ContextType.Assembly);
32
_objectSpaceItems = (ObjectItemCollection)
_context
.MetadataWorkspace.GetItemCollection(DataSpace.OSpace);
40
ILookup<EntityType, EntityType> derivedTypesLookup =
_context
.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace).ToLookup(e => (EntityType)e.BaseType);
92
var objectSpaceType = (EnumType)
_context
.MetadataWorkspace.GetObjectSpaceType(enumType);
97
var objectSpaceType = (EntityType)
_context
.MetadataWorkspace.GetObjectSpaceType(entityType);