How to extend GenericRepository?
<pre><code>public class GenericRepository&lt;TEntity&gt; where TEntity : class
{
    internal DbContext context;
    internal DbSet&lt;TEntity&gt; dbSet;

    public GenericRepository(DbContext context)
    {
        this.context = context;
        this.dbSet = context.Set&lt;TEntity&gt;();
    }
</code></pre>

<p>I want to create MemberRepository which is extended by GenericRepository.</p>

<p>So I tried like this,</p>

<pre><code>public class MemberRepository&lt;Member&gt; : GenericRepository&lt;Member&gt; where Member : class
    {
        public MemberRepository(DbContext context) : base(context){}

        public IQueryable&lt;Member&gt; GetMemberList(SearchOptions options)
        {
            IQueryable&lt;Member&gt; query = dbSet;

            query = query.Where(x= &gt; x.name == "test"); //!!
        }
</code></pre>

<p>but I can not search by name, the error message say,</p>

<blockquote>
  <p>Member does not contain a definition for 'name' and no extension
  method 'name' accepting a first argument of type 'Member' could be
  found.</p>
</blockquote>

<p>But the Member class contain name and it's public.</p>

<p>I think the way extend generic is something wrong.</p>

<p>What am I doing wrong? please give me an advice.</p>

<p>Here is my Member class,</p>

<pre><code>[Table("member")]
public class Member
{
    [Key]
    public int ID {get; set;}
    public string name {get; set;}
    public int schoolId {get; set;}

    [ForeignKey("schoolId")]
    public School school { get; set; }
}    
</code></pre>