示例#1
0
        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();
            }
        }
示例#2
0
 private void PerformBegin()
 {
     qc?.Close();
     qc = new QueryChunk();
     qc.Begin();
     BeginButton.IsEnabled    = false;
     CommitButton.IsEnabled   = true;
     RollbackButton.IsEnabled = true;
 }