public void InserMany <T>(IEnumerable <T> entities)
     where T : class
 {
     using (var context = new EntityFrameworkCoreDbContext()) {
         context.Set <T>().AddRange(entities);
         context.SaveChanges();
     }
 }
 public void InsertOne <T>(T entity)
     where T : class
 {
     using (var context = new EntityFrameworkCoreDbContext()) {
         context.Set <T>().Add(entity);
         context.SaveChanges();
     }
 }