EntityCollection<TEntity> Constructor ()

 

Initializes a new instance of the EntityCollection<TEntity> class.

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

public EntityCollection()

This public constructor for EntityCollection<TEntity> is intended to be used by Object Services when deserializing object graphs. You should access an instance of EntityCollection<TEntity> from a navigation property instead of using this constructor.

To store an unrelated collection of objects of a specific entity type, such as the result of an ObjectQuery<T>, use an instance of List<T>.

.NET Framework
Available since 3.5
Return to top
Show: