How to fetch an attributes from my class with EF
<p>I have 3 class, 2 are simple class and 1 combines the two of them.</p>

<pre><code>public class Person:Base
{
    public DateTime DOB { get; set; }
    public string first { get; set; }
    public string last { get; set; }
}

public class Roles:Base
{
    public string Description { get; set; }
}

public class RolePerson:Base
{
    public int pID { get; set; }
    public virtual Person PersonID { get; set; }
    public int rID { get; set; }
    public virtual Roles RoleID { get; set; }
    public int order { get; set; }
}
</code></pre>

<p>Now I have method that would select RolePerson witch would grab all member of pID with the id that i provide in the argument, and return the RoleID field.</p>

<p>this is how my method look like</p>

<pre><code>    public IEnumerable&lt;Roles&gt; PersonRoles(int personID)
    {
        return db.RolePerson.Where&lt;RolePerson&gt;((p) =&gt; p.pID == personID);
    }
</code></pre>

<p>How can i say to return the role and not the roleperson.</p>

<p>Update:</p>

<p>My base class is as follow</p>

<pre><code>public abstract class Base
    {
        public int ID { get; set; }
        public Boolean isValid { get; set; }
        public DateTime createdOn { get; set; }
        public int createdID { get; set; }
        public Person createdPerson { get; set; }
        public DateTime updatedOn { get; set; }
        public int updatedID { get; set; }
        public Person updatedPerson { get; set; }
   }
</code></pre>