private void PerformExecute() { var openNew = !(null != qc && qc.TransactionAlreadyBegun); if (openNew) { qc = new QueryChunk(); qc.Open(); } qc.AddCommand(QueryInput.Text); qc.Execute(); if (openNew) { qc.Close(); } }
private void PerformBegin() { qc?.Close(); qc = new QueryChunk(); qc.Begin(); BeginButton.IsEnabled = false; CommitButton.IsEnabled = true; RollbackButton.IsEnabled = true; }