title: 'Object' does not contain a definition for 'GetSqlXml'
body: <p>Visual Studio is not liking this code.  =(</p>
  
  <pre><code>SqlXml sqlXml = reader["ScenarioData"].GetSqlXml();
  </code></pre>
  
  <p>It hates the <code>GetSqlXml();</code> part, and is throwing the error:</p>
  
  <blockquote>
    <p>'object' does not contain a definition for 'GetSqlXml' and no extension method 'GetSqlXml' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>I think I'm including all of the necessary references and namespaces and dll files but I just can't get VS to recognize the function.  What are my next steps?</p>