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

            try
            {
                if (disposing)
                {
                    _context?.Dispose();
                }
            }
            finally
            {
                _disposed = true;
            }
        }
Example #2
0
 public void Dispose()
 {
     _context?.Dispose();
 }
Example #3
0
 public void Dispose()
 {
     context.Dispose();
 }