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)
         {
             context.Dispose();
         }
     }
     this.disposed = true;
 }
 protected override void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _booksDbContext.Dispose();
         }
         _disposed = true;
     }
     base.Dispose(disposing);
 }
예제 #4
0
 protected virtual void Dispose(bool Disposing)
 {
     if (Disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
         if (_cancellationTokenSource != null)
         {
             _cancellationTokenSource.Dispose();
             _cancellationTokenSource = null;
         }
     }
 }
예제 #5
0
 protected override void Dispose(bool disposing)
 {
     context.Dispose();
     base.Dispose(disposing);
 }