title: How to brings the Entity Framework Include extention method to a Generic IQueryable<TSource>
body: <p>Here's the thing.</p>
  
  <p>I have an interface, and I would to put the <code>Include</code> extension method, who belongs to <em>EntityFramework</em> library, to my <code>IRepository</code> layer wich dont needs to knows about <em>EntityFramework</em>.</p>
  
  <pre><code>public interface IRepository&lt;TEntity&gt;
  {
      IQueryable&lt;TEntity&gt; Entities { get; }
  
      TEntity GetById(long id);
      TEntity Insert(TEntity entity);
      void Update(TEntity entity);
      void Delete(TEntity entity);
      void Delete(long id);
  }
  </code></pre>
  
  <p>So I have the extension method:</p>
  
  <pre><code>public static class IncludeExtension 
  {
      static IQueryable&lt;TEntity&gt; Include&lt;TEntity&gt;(this IQueryable&lt;TEntity&gt; query, 
          string path)
      {
          throw new NotImplementedException();
      }
  }
  </code></pre>
  
  <p>But I don't know how to implement it in this layer, and I would to send it to my EntityFramework (or whatever who will implement the IRepository) to deal with.</p>
  
  <p>I need same to a Interface with a extension method. </p>
  
  <p>Any light?</p>