public void DropTable(AppDbContext context) { foreach (var entity in _repo.GetAllEntities()) { context.Remove(entity); } context.SaveChanges(); }