src/Shared/EntityFramework/DbSet.cs
/// <summary>
/// Adds the given collection of entities into context underlying the set with each entity being put into
/// the Added state such that it will be inserted into the database when SaveChanges is called.
/// </summary>
/// <param name="entities">The collection of entities to add.</param>
/// <returns>
/// The collection of entities.
/// </returns>
/// <remarks>
/// Note that if <see cref="DbContextConfiguration.AutoDetectChangesEnabled" /> is set to true (which is
/// the default), then DetectChanges will be called once before adding any entities and will not be called
/// again. This means that in some situations AddRange may perform significantly better than calling
/// Add multiple times would do.
/// Note that entities that are already in the context in some other state will have their state set to
/// Added.  AddRange is a no-op for entities that are already in the context in the Added state.
/// </remarks>
Adds the given collection of entities into context underlying the set with each entity being put into
the Added state such that it will be inserted into the database when SaveChanges is called.
Adds the given collection of entities into context underlying the set with each entity being put into the Added state such that it will be inserted into the database when SaveChanges is called .
public virtual IEnumerable AddRange(IEnumerable entities)
        {
            Check.NotNull(entities, "entities");
            GetInternalSetWithCheck("AddRange").AddRange(entities);
            return entities;
        }
public virtual IEnumerable AddRange ( IEnumerable entities ) { Check . NotNull ( entities , " " ) ; GetInternalSetWithCheck ( " " ) . AddRange ( entities ) ; return entities ; }
Adds the given collection of entities into context underlying the set with each entity being put into
the Added state such that it will be inserted into the database when SaveChanges is called.
Adds the given collection of entities into context underlying the set with each entity being put into the Added state such that it will be inserted into the database when SaveChanges is called .
The collection of entities.
The collection of entities .
entities
IEnumerable
The collection of entities to add.
The collection of entities to add .
remarks
Note that if  is set to true (which is
the default), then DetectChanges will be called once before adding any entities and will not be called
again. This means that in some situations AddRange may perform significantly better than calling
Add multiple times would do.
Note that entities that are already in the context in some other state will have their state set to
Added.  AddRange is a no-op for entities that are already in the context in the Added state.
Note that if is set to true ( which is the default ) then DetectChanges will be called once before adding any entities and will not be called again . This means that in some situations AddRange may perform significantly better than calling Add multiple times would do . Note that entities that are already in the context in some other state will have their state set to Added . AddRange is a no - op for entities that are already in the context in the Added state .