private void Dispose(bool disposing)
 {
     if (disposing)
     {
         _dbContext.Dispose();
     }
     // Free any unmanaged objects here.
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _dbContext.Dispose();
     }
     base.Dispose(disposing);
 }
Exemple #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed && disposing)
            {
                _dbContext.Dispose();
            }

            this.disposed = true;
        }
Exemple #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             context.Dispose();
         }
     }
     this.disposed = true;
 }
        public virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _context.Dispose();
                }
            }

            _disposed = true;
        }
 protected void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             if (_context != null)
             {
                 _context.Dispose();
                 _context = null;
             }
         }
     }
     _disposed = true;
 }
 public void Dispose()
 {
     _dbContext.Dispose();
 }
Exemple #8
0
 public void Dispose()
 {
     _context.Dispose();
 }
Exemple #9
0
 public void Dispose() => _context.Dispose();
 public void Dispose()
 {
     Context?.Dispose();
 }