title: The best overloaded method match for XXX has some invalid arguments
body: <p>I'm a new beginner to the entity framework .</p>
  
  <p>I try to write te following method but i get a compile time error.</p>
  
  <pre><code> protected static void EntitySQLQuery(AWEntities context)
          {
              string cmd = @"SELECT VALUE c FROM AWEntities.Person AS c WHERE c.FirstName = @FirstName";
  
              ObjectQuery&lt;Person&gt; persons = new ObjectQuery&lt;Person&gt;(cmd, context);//Error
  
  
          }
  </code></pre>
  
  <hr>
  
  <blockquote>
    <p>The best overloaded method match for
    'System.Data.Objects.ObjectQuery.ObjectQuery(string,
    System.Data.Objects.ObjectContext)' has some invalid arguments</p>
  </blockquote>