EntityCollection<TEntity>.Add Method (TEntity)
Adds an object to the collection.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- item
-
Type:
TEntity
An object to add to the collection. entity must implement IEntityWithRelationships .
Implements
ICollection<T>.Add(T)Exception | Condition |
---|---|
ArgumentNullException | entity is null. |