Example #1
0
 public void Add <T>(List <T> entitys) where T : class
 {
     foreach (var entity in entitys)
     {
         dbContext.Entry <T>(entity).State = EntityState.Added;
     }
 }