title: FindBy Id method in EntityFramework
body: <p>it is possible to implement FindBy method in Entity framework while we have this GenericRepository class : </p>
  
  <pre><code>public class Repository&lt;T&gt; : IRepository&lt;T&gt; where T : class, IAggregateRoot
      {
  
          private readonly DbSet&lt;T&gt; _entitySet;
  public IQueryable&lt;T&gt; FindBy(Expression&lt;Func&lt;T, bool&gt;&gt; predicate)
          {
              //IQueryable&lt;T&gt; query=_entitySet.
          }
  }
  </code></pre>
  
  <p>how can I Implement FindBy in this case !??</p>