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(); } }
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(); } }