protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _adventure.Dispose();
         }
     }
     this.disposed = true;
 }
Пример #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             Debug.WriteLine("UnitOfWork is being disposed");
             _context.Dispose();
         }
     }
     this.disposed = true;
 }
Пример #4
0
 public void Dispose()
 {
     _dbContext.Dispose();
 }
Пример #5
0
 public void Dispose() // IDisposable implementation
 {
     dbContext.Dispose();
 }