src/Shared/EntityFramework/Core/Objects/DataClasses/EntityCollection.cs
/// <summary>Determines whether a specific object exists in the collection.</summary>
/// <returns>
/// true if the object is found in the <see cref="T:System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1" />; otherwise, false.
/// </returns>
/// <param name="item">
/// The object to locate in the <see cref="T:System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1" />.
/// </param>
Determines whether a specific object exists in the collection.
Determines whether a specific object exists in the collection .
public bool Contains(TEntity item)
        {
            DeferredLoad();
            return _wrappedRelatedEntities == null ? false : _wrappedRelatedEntities.ContainsKey(item);
        }
public bool Contains ( TEntity item ) { DeferredLoad ( ) ; return _wrappedRelatedEntities == null ? false : _wrappedRelatedEntities . ContainsKey ( item ) ; }
Determines whether a specific object exists in the collection.
Determines whether a specific object exists in the collection .
true if the object is found in the ; otherwise, false.
true if the object is found in the ; otherwise false .
item
TEntity
The object to locate in the .
The object to locate in the .