protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
     }
     this.disposed = true;
 }
Пример #3
0
 public void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _dbContext.Dispose();
         }
     }
     _disposed = true;
 }
Пример #4
0
 public void TearDown()
 {
     _inMemoryContext.Dispose();
 }
Пример #5
0
 public void Dispose()
 {
     context.Dispose();
 }