public void RemoveRange(Expression <Func <TEntity, bool> > filter = null) { IQueryable <TEntity> query = DbSet; var listDelete = query.Where(filter).ToList(); DbSet.RemoveRange(listDelete); }
public void RemoveRange(Expression <Func <TEntity, bool> > filter = null) { IQueryable <TEntity> query = DbSet; var listDelete = query.Where(filter).ToList(); DbSet.RemoveRange(listDelete); }