title: How do I tell UserManager.FindByNameAsync to include a relation?
body: <p>I am using ASP.NET Identity 2.2.0 with ASP.NET MVC 5.2.3 and Entity Framework 6.1.2.</p>
  
  <p>I added a new property and its corresponding table to my database using ASP.NET Identity with Code First like so:</p>
  
  <pre><code>public class ApplicationUser
  {
    [ForeignKey("UserTypeId")]
    public UserType Type { get; set;}
    public int UserTypeId { get; set;} 
  }
  
  public class UserType
  {
    [Key]
    public int Id { get; set;}
  
    public string Name { get; set; }
  }
  </code></pre>
  
  <p>Now, from some action, when I call:</p>
  
  <pre><code>var user = UserManager.FindByNameAsync(userName);
  </code></pre>
  
  <p>It does get the user with the correct <code>UserTypeId</code> because that is a primitive, but it does not get the <code>UserType</code> property of the <code>ApplicationUser</code> class.</p>
  
  <p>If I were not using this abstraction, I would either call <code>LoadProperty&lt;T&gt;</code> or the <code>Include</code> method in Entity Framework to include the navigational property or relation named <code>Type</code> (of type <code>UserType</code>) on the <code>ApplicationUser</code> class.</p>
  
  <p>How do I do that with ASP.NET Identity's <code>UserManager</code>? I suspect the only way would be to override this method in my custom <code>UserManager</code> derived class and do it myself?</p>