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)
26ContextType = _context.GetType(); 29EntityContainer container = _context.MetadataWorkspace.GetEntityContainer(_context.DefaultContainerName, DataSpace.CSpace); 31_context.MetadataWorkspace.LoadFromAssembly(ContextType.Assembly); 32_objectSpaceItems = (ObjectItemCollection)_context.MetadataWorkspace.GetItemCollection(DataSpace.OSpace); 40ILookup<EntityType, EntityType> derivedTypesLookup = _context.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace).ToLookup(e => (EntityType)e.BaseType); 92var objectSpaceType = (EnumType)_context.MetadataWorkspace.GetObjectSpaceType(enumType); 97var objectSpaceType = (EntityType)_context.MetadataWorkspace.GetObjectSpaceType(entityType);