Beispiel #1
0
 public void Dispose()
 {
     if (_context != null)
     {
         _context.Dispose();
     }
 }
Beispiel #2
0
 protected override void DisposeCore()
 {
     if (dbContext != null)
     {
         dbContext.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Beispiel #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
         this.disposed = true;
     }
 }
Beispiel #5
0
 /// <summary>
 /// Disposes all external resources.
 /// </summary>
 /// <param name="disposing">The dispose indicator.</param>
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_dbContext != null)
         {
             _dbContext.Dispose();
             _dbContext = null;
         }
     }
 }
 public void Cleanup()
 {
     customersContext.Dispose();
 }
Beispiel #7
0
 public void Dispose()
 {
     Db.Dispose();
 }
Beispiel #8
0
        public void Dispose()
        {
            _context.Database.EnsureDeleted();

            _context.Dispose();
        }
Beispiel #9
0
 public void Dispose()
 {
     context.Dispose();
 }
Beispiel #10
0
 protected override void Dispose(bool disposing)
 {
     _context.Dispose();
 }
 public void Dispose()
 {
     _customerContext.Dispose();
 }
 public void Dispose()
 {
     _context?.Dispose();
 }
Beispiel #13
0
 public void Dispose()
 {
     _context.Dispose();
     GC.SuppressFinalize(this);
 }
Beispiel #14
0
 public void Dispose()
 {
     _dbContext.Dispose();
 }
Beispiel #15
0
 protected override void DisposeCore()
 {
     customerContext?.Dispose();
 }