/// <summary>Removes a specific entity set from the container.</summary> /// <param name="entitySetBase">The entity set to remove.</param> public void RemoveEntitySetBase(EntitySetBase entitySetBase) { Check.NotNull <EntitySetBase>(entitySetBase, nameof(entitySetBase)); Util.ThrowIfReadOnly((MetadataItem)this); this._baseEntitySets.Source.Remove(entitySetBase); entitySetBase.ChangeEntityContainerWithoutCollectionFixup((EntityContainer)null); }
/// <summary>Removes a specific entity set from the container.</summary> /// <param name="entitySetBase">The entity set to remove.</param> public void RemoveEntitySetBase(EntitySetBase entitySetBase) { Check.NotNull(entitySetBase, "entitySetBase"); Util.ThrowIfReadOnly(this); _baseEntitySets.Source.Remove(entitySetBase); entitySetBase.ChangeEntityContainerWithoutCollectionFixup(null); }