src/Shared/EntityFramework/Internal/DbLocalView`.cs
// <summary>
// Determines whether an entity is in the set.
// </summary>
// <returns>
// <c>true</c> if <paramref name="item"/> is found in the set; otherwise, false.
// </returns>
// <param name="item"> The entity to locate in the set. The value can be null.</param>
Determines whether an entity is in the set.
Determines whether an entity is in the set .
public new virtual bool Contains(TEntity item)
        {
            IEqualityComparer<TEntity> comparer = ObjectReferenceEqualityComparer.Default;
            foreach (var entity in Items)
            {
                if (comparer.Equals(entity, item))
                {
                    return true;
                }
            }
            return false;
        }
public new virtual bool Contains ( TEntity item ) { IEqualityComparer < TEntity > comparer = ObjectReferenceEqualityComparer . Default ; foreach ( var entity in Items ) { if ( comparer . Equals ( entity , item ) ) { return true ; } } return false ; }
Determines whether an entity is in the set.
Determines whether an entity is in the set .
true is found in the set; otherwise, false.
true is found in the set ; otherwise false .
item
TEntity
The entity to locate in the set. The value can be null.
The entity to locate in the set . The value can be null .