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