src/Shared/EntityFramework/Internal/DbLocalView`.cs
// <summary>
// Removes the first occurrence of a specific entity object from the set.
// </summary>
// <returns>
// <c>true</c> if <paramref name="item"/> is successfully removed; otherwise, false.
// This method also returns <c>false</c> if <paramref name="item"/> was not found in the set.
// </returns>
// <param name="item"> The entity to remove from the set. The value can be null.</param>
Removes the first occurrence of a specific entity object from the set.
Removes the first occurrence of a specific entity object from the set .
public new virtual bool Remove(TEntity item)
        {
            IEqualityComparer<TEntity> comparer = ObjectReferenceEqualityComparer.Default;
            var index = 0;
            for (; index < Count; index++)
            {
                if (comparer.Equals(Items[index], item))
                {
                    break;
                }
            }
            if (index == Count)
            {
                return false;
            }
            RemoveItem(index);
            return true;
        }
public new virtual bool Remove ( TEntity item ) { IEqualityComparer < TEntity > comparer = ObjectReferenceEqualityComparer . Default ; var index = 0 ; for ( ; index < Count ; index ++ ) { if ( comparer . Equals ( Items [ index ] , item ) ) { break ; } } if ( index == Count ) { return false ; } RemoveItem ( index ) ; return true ; }
Removes the first occurrence of a specific entity object from the set.
Removes the first occurrence of a specific entity object from the set .
true is successfully removed; otherwise, false.
This method also returns false was not found in the set.
true is successfully removed ; otherwise false . This method also returns false was not found in the set .
item
TEntity
The entity to remove from the set. The value can be null.
The entity to remove from the set . The value can be null .