protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            try
            {
                if (disposing)
                {
                    _context?.Dispose();
                }
            }
            finally
            {
                _disposed = true;
            }
        }
Пример #2
0
 public void Dispose()
 {
     _context?.Dispose();
 }
Пример #3
0
 public void Dispose()
 {
     context.Dispose();
 }