Exemplo n.º 1
0
 public virtual void BulkInsert(IEnumerable <T> models)
 {
     using (var scope = new TransactionScope())
     {
         try
         {
             DbContext.BulkInsert(models);
         }
         catch (Exception ex)
         {
             LogService.Instance.Debug("", ex);
             return;
         }
         scope.Complete();
     }
 }