Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing && _dbContext != null)
            {
                _dbContext.Dispose();
            }

            _disposed = true;
        }
 public virtual void Dispose()
 {
     _context.Dispose();
     GC.SuppressFinalize(this);
 }