/// <summary> /// Discard changes in context (DiscardChanges) and, if there is an open transaction, do the Rollback as well. /// </summary> public void Rollback() { _context.DiscardChanges(); _dbContextTransaction?.Rollback(); }
/// <summary> /// Discard changes in context (DiscardChanges) and, if there is an open transaction, do the Rollback as well. /// </summary> public void Rollback() { _context.DiscardChanges(); _dbContextTransaction?.Rollback(); }