Example #1
0
        public void DropTable(AppDbContext context)
        {
            foreach (var entity in _repo.GetAllEntities())
            {
                context.Remove(entity);
            }

            context.SaveChanges();
        }