title: Use ExecuteQuery<T>() on an SQLiteCommand
body: <h1>Problem</h1>
  
  <p>In LINQPad 4, when I try to run the following code:</p>
  
  <pre><code>void Main()
  {
      using (var conn = new SQLiteConnection(@"C:\linqToSqlite"))
      {
          var query = new SQLiteCommand(conn);
          query.CommandText = "SELECT * FROM MyTable";
          var result = query.ExecuteQuery&lt;MyTable&gt;();
      }
  }
  </code></pre>
  
  <p>I receive the following error: </p>
  
  <blockquote>
    <p>'System.Data.SQLite.SQLiteCommand' does not contain a definition for 'ExecuteQuery' and no extension method 'ExecuteQuery' accepting a first argument of type 'System.Data.SQLite.SQLiteCommand' could be found (press F4 to add a using directive or assembly reference)</p>
  </blockquote>
  
  <h1>What I have tried</h1>
  
  <p>Additional References: </p>
  
  <pre><code>System.Data.Linq.dll
  System.Data.SQLite.dll
  System.Data.SQLite.Linq.dll
  </code></pre>
  
  <p>Additional Namespace Imports:</p>
  
  <pre><code>System.Data.Linq
  System.Data.SQLite
  System.Data.SQLite.Linq // Cannot add this, cleanup removes it.
  </code></pre>
  
  <p><a href="http://rbdocumentation.com/html/8d794541-d5b7-c66a-4446-beecccae7ee9.htm#!" rel="nofollow">I've also found documentation</a>, which talks about using the <code>SQLiteCommand.ExecuteQuery</code> method. That's the only place I have seen the command mentioned.</p>