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