EntityCollection<TEntity>.Count Property

 

Gets the number of objects that are contained in the collection.

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

public int Count { get; }

Property Value

Type: System.Int32

The number of elements that are contained in the EntityCollection<TEntity> .