src/Shared/EntityFramework/DbSet`.cs
/// <summary>
/// Removes the given collection of entities from the context underlying the set with each entity being put into
/// the Deleted state such that it will be deleted from the database when SaveChanges is called.
/// </summary>
/// <param name="entities">The collection of entities to delete.</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 delete any entities and will not be called
/// again. This means that in some situations RemoveRange may perform significantly better than calling
/// Remove multiple times would do.
/// Note that if any entity exists in the context in the Added state, then this method
/// will cause it to be detached from the context.  This is because an Added entity is assumed not to
/// exist in the database such that trying to delete it does not make sense.
/// </remarks>
Removes the given collection of entities from the context underlying the set with each entity being put into
the Deleted state such that it will be deleted from the database when SaveChanges is called.
Removes the given collection of entities from the context underlying the set with each entity being put into the Deleted state such that it will be deleted from the database when SaveChanges is called .
public virtual IEnumerable<TEntity> RemoveRange(IEnumerable<TEntity> entities)
        {
            Check.NotNull(entities, "entities");
            GetInternalSetWithCheck("RemoveRange").RemoveRange(entities);
            return entities;
        }
public virtual IEnumerable < TEntity > RemoveRange ( IEnumerable < TEntity > entities ) { Check . NotNull ( entities , " " ) ; GetInternalSetWithCheck ( " " ) . RemoveRange ( entities ) ; return entities ; }
Removes the given collection of entities from the context underlying the set with each entity being put into
the Deleted state such that it will be deleted from the database when SaveChanges is called.
Removes the given collection of entities from the context underlying the set with each entity being put into the Deleted state such that it will be deleted from the database when SaveChanges is called .
The collection of entities.
The collection of entities .
entities
IEnumerable<TEntity>
The collection of entities to delete.
The collection of entities to delete .
remarks
Note that if  is set to true (which is
the default), then DetectChanges will be called once before delete any entities and will not be called
again. This means that in some situations RemoveRange may perform significantly better than calling
Remove multiple times would do.
Note that if any entity exists in the context in the Added state, then this method
will cause it to be detached from the context.  This is because an Added entity is assumed not to
exist in the database such that trying to delete it does not make sense.
Note that if is set to true ( which is the default ) then DetectChanges will be called once before delete any entities and will not be called again . This means that in some situations RemoveRange may perform significantly better than calling Remove multiple times would do . Note that if any entity exists in the context in the Added state then this method will cause it to be detached from the context . This is because an Added entity is assumed not to exist in the database such that trying to delete it does not make sense .