title: Operator '==' cannot be applied to operands of type 'SqlHierarchyId' and 'string'
body: <p>How do I compare <code>SqlHierarchyId</code> type in LINQ? I tried with below</p>
  <pre><code>string input = &quot;/1/2/&quot;;
  var output = SqlHierarchyId.Parse(input);
  
  var fileFolder = _PIMSContext.FileFolders.SingleOrDefault(f =&gt;  f.Node == input);
  </code></pre>
  <p>and</p>
  <pre><code>string input = &quot;/1/2/&quot;;
  var output = SqlHierarchyId.Parse(input);
  
  var fileFolder = _PIMSContext.FileFolders.SingleOrDefault(f =&gt;  f.Node == output);
  </code></pre>