System\Data\WebControls\EntityDataSourceView.cs (43)
212Context,
267ObjectQuery<T> query = queryBuilder.BuildBasicQuery(Context, arguments.RetrieveTotalRowCount);
301MetadataWorkspace workspace = Context.MetadataWorkspace;
305_collectionManager.CreateCollection(Context, EntitySet, newCSpaceType, WrapperCollectionManager.ManagerMode.FlattenedEntities);
338queryT = queryBuilder.CompleteBuild(queryT, Context, arguments.RetrieveTotalRowCount, wasQueryModified);
362Context.MetadataWorkspace.GetItemCollection(DataSpace.CSpace),
391OnSelected(new EntityDataSourceSelectedEventArgs(Context, entities, totalRowCount, arguments));
407var elementEntitySet = Context.ObjectStateManager.GetObjectStateEntry(element).EntitySet;
474new EntityDataSourceWrapperCollection(Context, EntitySet, CSpaceFilteredEntityType);
479Context.AddObject(_owner.FQEntitySetName, entity);
511Context.AcceptAllChanges(); //Puts modifiedEntityWrapper into unchanged state.
528Context.DetectChanges();
545Context.DetectChanges();
559changingArgs = new EntityDataSourceChangingEventArgs(Context, modifiedEntityWrapper.WrappedEntity);
568Context.SaveChanges();
582OnUpdated(new EntityDataSourceChangedEventArgs(Context, modifiedEntityWrapper.WrappedEntity));
599EntityDataSourceWrapperCollection wrapperCollection = new EntityDataSourceWrapperCollection(Context, EntitySet, CSpaceFilteredEntityType);
606Context.AddObject(_owner.FQEntitySetName, entity); // Add/AcceptAllChanges because wrappers must contain attached entities
624Context.AcceptAllChanges(); //Force the entity just added into unchanged state. Wrapped entities must be tracked.
637changingArgs = new EntityDataSourceChangingEventArgs(Context, entityWrapper.WrappedEntity);
646Context.DeleteObject(entityWrapper.WrappedEntity);
647Context.SaveChanges();
661OnDeleted(new EntityDataSourceChangedEventArgs(Context, entity)); //Outside "try" to prevent being called twice.
678EntityDataSourceWrapperCollection wrapperCollection = new EntityDataSourceWrapperCollection(Context, EntitySet, CSpaceFilteredEntityType);
683Context.AddObject(_owner.FQEntitySetName, entity);
699changingArgs = new EntityDataSourceChangingEventArgs(Context, entityWrapper.WrappedEntity);
708Context.Detach(entityWrapper.WrappedEntity);
709Context.AddObject(_owner.EntitySetName, changingArgs.Entity);
715Context.SaveChanges();
728OnInserted(new EntityDataSourceChangedEventArgs(Context, entityWrapper.WrappedEntity));
741EntityDataSourceWrapperCollection wrappers = new EntityDataSourceWrapperCollection(Context, EntitySet, CSpaceFilteredEntityType);
762EntityType entityType = Context.MetadataWorkspace.GetObjectSpaceType(CSpaceFilteredEntityType ?? EntitySet.ElementType) as EntityType;
1196OnContextCreated(new EntityDataSourceContextCreatedEventArgs(Context));
1462StructuralType oSpaceType = Context.MetadataWorkspace.GetObjectSpaceType(EntityCSpaceType);
1482cSpaceType = (EntityType)Context.MetadataWorkspace.GetType(_owner.EntityTypeFilter, EntitySet.ElementType.NamespaceName, DataSpace.CSpace);
1483if (!EntityDataSourceUtil.IsTypeOrSubtypeOf(EntitySet.ElementType, cSpaceType, Context.MetadataWorkspace.GetItemCollection(DataSpace.CSpace)))
1521return Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace);
1546(ObjectItemCollection)(Context.MetadataWorkspace.GetItemCollection(DataSpace.OSpace));
1567EntityContainer entityContainer = Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace);
1584if (!string.IsNullOrEmpty(Context.DefaultContainerName))
1586return Context.DefaultContainerName;
1641EntityContainer entityContainer = Context.MetadataWorkspace.GetEntityContainer(ContainerName, DataSpace.CSpace);
1652if (!Context.MetadataWorkspace.TryGetEntityContainer(ContainerName, DataSpace.CSpace, out container))