System\Data\Services\Providers\ObjectContextServiceProvider.cs (40)
86get { return this.ObjectContext.DefaultContainerName; }
117EntityType sourceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace);
143string targetEntitySetName = GetEntitySetName(targetEntitySet.Name, targetEntitySet.EntityContainer.Name, this.ObjectContext.DefaultContainerName == targetEntitySet.EntityContainer.Name);
293InitializeObjectItemCollection(this.ObjectContext, this.Type.Assembly);
295var metadataManager = new MetadataManager(this.ObjectContext.MetadataWorkspace, this.GetDefaultEntityContainer(), provider, service);
301Double currentVersion = ((EdmItemCollection)this.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.CSpace)).EdmVersion;
361resource = CreateObject(this.ObjectContext, resourceType.InstanceType);
362this.ObjectContext.AddObject(containerName, resource);
426object newInstance = CreateObject(this.ObjectContext, resourceType.InstanceType);
442ObjectStateEntry objectStateEntry = this.ObjectContext.ObjectStateManager.GetObjectStateEntry(resource);
448this.ObjectContext.AddObject(this.GetEntitySetName(objectStateEntry), newInstance);
542this.ObjectContext.DeleteObject(resource);
553ObjectStateEntry objectStateEntry = this.ObjectContext.ObjectStateManager.GetObjectStateEntry(objectToBeReplaced.Key);
558this.ObjectContext.Detach(objectToBeReplaced.Key);
559this.ObjectContext.AddObject(entitySetName, objectToBeReplaced.Value);
565this.ObjectContext.ApplyPropertyChanges(entitySetName, objectToBeReplaced.Value);
576this.ObjectContext.SaveChanges();
601foreach (ObjectStateEntry entry in this.ObjectContext.ObjectStateManager.GetObjectStateEntries(EntityState.Added | EntityState.Deleted | EntityState.Modified | EntityState.Unchanged))
614this.ObjectContext.Detach(entry.Entity);
642ObjectStateEntry objectStateEntry = this.ObjectContext.ObjectStateManager.GetObjectStateEntry(resource);
730EntityType entityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace);
738MetadataWorkspace workspace = ((EntityConnection)this.ObjectContext.Connection).GetMetadataWorkspace();
848Debug.Assert(this.ObjectContext != null, "this.ObjectContext != null");
850InitializeObjectItemCollection(this.ObjectContext, this.Type.Assembly);
851MetadataWorkspace metadataWorkspace = this.ObjectContext.MetadataWorkspace;
869bool defaultEntityContainer = entityContainer.Name == this.ObjectContext.DefaultContainerName;
965InitializeObjectItemCollection(this.ObjectContext, type.Assembly);
966ObjectItemCollection objectItemCollection = (ObjectItemCollection)this.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.OSpace);
970if (this.ObjectContext.MetadataWorkspace.TryGetEdmSpaceType(ospaceType, out cspaceType))
2303entityContainerName = this.ObjectContext.DefaultContainerName;
2307EntityContainer entityContainer = this.ObjectContext.MetadataWorkspace.GetEntityContainer(entityContainerName, DataSpace.CSpace);
2328if (String.IsNullOrEmpty(this.ObjectContext.DefaultContainerName))
2333if (!this.ObjectContext.MetadataWorkspace.TryGetEntityContainer(
2334this.ObjectContext.DefaultContainerName, DataSpace.CSpace, out entityContainer))
2337Strings.ObjectContext_InvalidDefaultEntityContainerName(this.ObjectContext.DefaultContainerName));
2368return (ObjectQuery)container.ReadFromContextDelegate(this.ObjectContext);
2381entry.EntitySet.EntityContainer.Name == this.ObjectContext.DefaultContainerName);
2399EntityType cspaceEntityType = this.ObjectContext.MetadataWorkspace.GetItem<EntityType>(resourceType.FullName, DataSpace.CSpace);
2407var stateEntry = this.ObjectContext.ObjectStateManager.GetObjectStateEntry(targetResource);
2443!key.Equals(this.ObjectContext.ObjectStateManager.GetObjectStateEntry(propertyValue).EntityKey))