The specified type member is not supported in LINQ to Entities. entity members, and entity navigation
<pre><code>public partial class User : IUser
{
    public long ID {get; set;}

    public BaseUser BaseUser
    {
        get
        {
            var context = new Factory().Create&lt;ContextDB&gt;();

            return context.Users.Find(this.ID);
        }
    }
}
</code></pre>

<p>and</p>

<pre><code>var result = _Context.Employees.Where(t =&gt; t.User.BaseUser.UserName.ToLower().Trim().Contains(searchKey));
</code></pre>

<p>Here I am getting an exception:</p>

<blockquote>
  <p>The specified type member 'BaseUser' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.</p>
</blockquote>

<p>Any solution to this?</p>