title: Generic ObjectContext? objectContext.GetObjectSet<TEntity>?
body: <p>Is there a way to get <code>ObjectQuery&lt;T&gt;</code> for specfied generic type?</p>
  
  <p>Pseudo:</p>
  
  <pre><code>public partial class MyObjectContext
  {
      public ObjectSet&lt;TEntity&gt; GetObjectSet&lt;TEntity&gt;()
      {
          return Helper.GetObjectSet&lt;TEntity&gt;(this);
      }
  }
  </code></pre>