public void Rollback() { if (Finished) { throw new InvalidOperationException("Transaction was already closed"); } Finished = true; Manager.Rollback(DatabaseQuery); }