title: IQueryable and Mixing Lazy Loading and Eager Loading
body: <p>I have a situation where I will be using a repository pattern and pulling objects from the database with a lazy loaded GetAll method that returns IQueryable. However I also need to build dynamic objects that will be included with the lazy loaded objects(query). </p>
  
  <p>Is it possible to add built objects to a lazy loaded IQueryable and still keep the lazy loaded benefits? For instance</p>
  
  <pre><code>public override IQueryable&lt;Foo&gt; GetAll()
  {
      return _entities; // lazy loaded
  }  
  
  public override IQueryable&lt;Foo&gt; GetAllPlusDynamic()
  {
      var entities = GetAll(); 
      foreach(var d in GetAllDynamic())
      {
          entities.Add(d); // eagerly loaded
      }
      return entities;
  }
  </code></pre>