src/Shared/EntityFramework/Core/Objects/DataClasses/EntityCollection.cs
/// <summary>Adds an object to the collection.</summary>
/// <param name="item">
/// An object to add to the collection.  entity  must implement
/// <see
///     cref="T:System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships" />
/// .
/// </param>
/// <exception cref="T:System.ArgumentNullException"> entity  is null.</exception>
Adds an object to the collection.
Adds an object to the collection .
public void Add(TEntity item)
        {
            Check.NotNull(item, "item");
            Add(EntityWrapperFactory.WrapEntityUsingContext(item, ObjectContext));
        }
public void Add ( TEntity item ) { Check . NotNull ( item , " " ) ; Add ( EntityWrapperFactory . WrapEntityUsingContext ( item , ObjectContext ) ) ; }
Adds an object to the collection.
Adds an object to the collection .
entity  is null.
entity is null .
item
TEntity
An object to add to the collection.  entity  must implement


An object to add to the collection . entity must implement