internal Transaction(DataChangeLogger logger) { Debug.Assert(logger != null); this.logger = logger; this.scope = logger.Enlist(this); }
public void Dispose() { if (this.logger != null) { if (!this.success) this.logger.Undo(this.scope); this.logger.Retire(this); this.logger = null; } }
public TransactedDataSet() : base() { this.logger = new DataChangeLogger(this); }