EntityCollection<TEntity>::Count Property
.NET Framework (current version)
Gets the number of objects that are contained in the collection.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Property Value
Type: System::Int32The number of elements that are contained in the EntityCollection<TEntity>.
Implements
ICollection<T>::CountThe Count property gets the number of entities currently in the local collection and does not reflect the size of the collection in the data source. A count of zero does not necessarily indicate that the related collection is empty. To determine the collection size in the data source, call the M:System.Data.Objects.DataClasses.EntityCollection`1.Load method or include the related object in the query path. For more information, see Loading Related Objects.
.NET Framework
Available since 3.5
Available since 3.5
Show: