Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }