title: Making a generic Query, how?
body: <p>Here is my working Code:</p>
  
  <pre><code>var queryString = "SELECT VALUE c " +
                    "FROM EMI_ERPContext.Customer AS c " +
                    "WHERE c.FirstName='Emanuel'";
  ObjectQuery&lt;Customer&gt; customers = ((IObjectContextAdapter)context).ObjectContext.CreateQuery&lt;Customer&gt;(queryString);
  </code></pre>
  
  <p>This code works fine.
  But I would like to be able, make this available for any Type. At the moment it works only for Customer. Making the <strong>queryString</strong> dynamic is easy, but how I would call this Line:?</p>
  
  <pre><code>ObjectQuery&lt;ANYTYPE&gt; anytypeObjects = ((IObjectContextAdapter)context).ObjectContext.CreateQuery&lt;ANYTYPE&gt;(queryString);
  </code></pre>
  
  <p>Is there a way to call the CreateQuery, without needing to give a specific Type or is there easy way I can make this work? Thanks for any advice!</p>