Example #1
0
        public void EndBatch()
        {
            var tempBatch = batch;

            batch = null;
            if (tempBatch.Changes.Count > 0) //if batch is empty, ignore it
            {
                RecordChange(tempBatch);
            }
        }
Example #2
0
 public IDisposable StartBatch(string changeDescription)
 {
     batch = new BatchChange(changeDescription, this);
     return(batch);
 }