EntityCollection<TEntity>.Contains Method (TEntity)

 

Determines whether a specific object exists in the collection.

Namespace:   System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

public bool Contains(
	TEntity item
)

Parameters

item
Type: TEntity

The object to locate in the EntityCollection<TEntity>.

Return Value

Type: System.Boolean

true if the object is found in the EntityCollection<TEntity> ; otherwise, false.