src/EntityFramework/Core/Objects/DataClasses/EntityCollection.cs
/// <summary>Removes an object from the collection and marks the relationship for deletion.</summary>
/// <returns>true if item was successfully removed; otherwise, false. </returns>
/// <param name="entity">The object to remove from the collection.</param>
/// <exception cref="T:System.ArgumentNullException"> entity  object is null.</exception>
/// <exception cref="T:System.InvalidOperationException">The  entity  object is not attached to the same object context.-or-The  entity  object does not have a valid relationship manager.</exception>
Removes an object from the collection and marks the relationship for deletion.
Removes an object from the collection and marks the relationship for deletion .
public bool Remove(TEntity item)
        {
            Check.NotNull(item, "item");
            DeferredLoad();
            return RemoveInternal(item);
        }
public bool Remove ( TEntity item ) { Check . NotNull ( item , " " ) ; DeferredLoad ( ) ; return RemoveInternal ( item ) ; }
Removes an object from the collection and marks the relationship for deletion.
Removes an object from the collection and marks the relationship for deletion .
true if item was successfully removed; otherwise, false.
true if item was successfully removed ; otherwise false .
entity  object is null.
entity object is null .
The  entity  object is not attached to the same object context.-or-The  entity  object does not have a valid relationship manager.
The entity object is not attached to the same object context . - or - The entity object does not have a valid relationship manager .
item
TEntity
entity
The object to remove from the collection.
The object to remove from the collection .