title: Extending the UserManager
body: <p>In my .NET Core 2.0 MVC project I added additional values to extend the ApplicationUser</p>
  
  <pre><code>public class ApplicationUser : IdentityUser
      {
          public string Name { get; set; }
          public DateTime DateCreated { get; set; }
          public DateTime DateUpdated { get; set; }
          public DateTime LastLogin{ get; set; }
  
      }
  </code></pre>
  
  <p>In _LoginPartial I would like to get the Name, instead of the UserName which it gets by default</p>
  
  <pre><code>@using Microsoft.AspNetCore.Identity
  @using RioTintoQRManager.Models
  
  @inject SignInManager&lt;ApplicationUser&gt; SignInManager
  @inject UserManager&lt;ApplicationUser&gt; UserManager
  @if (SignInManager.IsSignedIn(User))
  {
       @UserManager.GetUserName(User)
  }
  </code></pre>
  
  <p>How do I extend the UserManager, or create a new method that would be available in the view like UserManager.GetUserName is?</p>