Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     if (disposing)
     {
         if (!doNotDisposeDb && null != this.db)
         {
             this.db.Dispose();
             this.db = null;
         }
     }
     _disposed = true;
 }
Пример #2
0
 public MetaDataRepository(SavoniaMeasurementsV2Entities db)
 {
     this.db        = db;
     doNotDisposeDb = true;
 }
Пример #3
0
 public MetaDataRepository()
 {
     this.db = new SavoniaMeasurementsV2Entities();
 }