title: ASP.NET Core Identity UserManager returns user without including related objects (Lazy Loading)
body: <p>I have a custom user class <code>User</code> derived from <code>IdentityUser</code>:</p>
  <pre><code>public class User : IdentityUser
  {
      public UserInfo Info { get; set; }
  }
  </code></pre>
  <p>I have used a <code>UserInfo</code> class and two subclasses to store additional user info based on the user type:</p>
  <pre><code>public class UserInfo 
  {
      public int Id { get; set; }
  
      public string FirstName { get; set; }
      
      public string LastName { get; set; }
      
      public bool IsArchived { get; set; } = false;
  }
  
  public class StudentInfo : UserInfo 
  {
      public List&lt;Enrollment&gt; Enrollments { get; set; }
  }
  
  public class InstructorInfo : UserInfo
  {
     public List&lt;Department&gt; Departments { get; set; }
  }
  </code></pre>
  <p>In my <code>Account()</code> action of <code>UsersController</code>, I have used the injected <code>UserManager</code> instance to get the user from the user store:</p>
  <pre><code>public class UsersController 
  {
      private readonly UserManager&lt;User&gt; usrMgr;
      private readonly RoleManager&lt;IdentityRole&gt; roleMgr;
  
      public UsersController(UserManager&lt;User&gt; usrMgr, RoleManager&lt;IdentityRole&gt; roleMgr) 
       =&gt; (this.usrMgr, this.roleMgr) = (usrMgr, roleMgr);
  
      [Authorize]
      public async Task&lt;IActionResult&gt; Account()
      {
          User user = await userManager.GetUserAsync(this.User); // Here user.Info is null
          return user is null ? NotFound() : View(user);
      }
  }
  </code></pre>
  <p>The problem is that the <code>GetUserAsync(this.User)</code> method does not include the <code>UserInfo</code> property but keeps it as <code>null</code>.  <code>FindByIdAsync(userId)</code> does not include it either. If this was a <code>DbContext</code>, I could've used an <code>.Include()</code> but I'm not quite sure how to tell the <code>UserManager</code> to include the related properties here.</p>