title: Why is the return type IdentityUser and not ApplicationUser?
body: <p>I have this class</p>
  
  <pre><code>public class ApplicationUser : IdentityUser
  {
     public string Email { get; set; }
     public string ConfirmationToken { get; set; }
     public bool IsConfirmed { get; set; }
     ...
  }
  </code></pre>
  
  <p>and in <strong>DbContext</strong> class this is what I've done</p>
  
  <pre><code>public partial class PickerDbContext : IdentityDbContext
  {
      public PickerDbContext():base("DefaultConnection")
      {
      }
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          base.OnModelCreating(modelBuilder);
          modelBuilder.Entity&lt;ApplicationUser&gt;().ToTable("Users");
          modelBuilder.Entity&lt;IdentityUser&gt;().ToTable("Users");
          modelBuilder.Entity&lt;IdentityRole&gt;().ToTable("Roles");
      }
      //public DbSet&lt;License&gt; Licenses { get; set; }
      ....
  }
  </code></pre>
  
  <p>now when I try to query the <code>Users</code> table in my repository with something like</p>
  
  <pre><code>var user = _db.Users.SingleOrDefault(u=&gt;u.anyfield);
  </code></pre>
  
  <p>I think it has return type as <code>IdentityUser</code> and not <code>ApplicationUser</code> because when I do <code>u=&gt;u.</code> intellisense option doesn't show the fields from <code>ApplicationUser</code> </p>
  
  <p><img src="https://i.stack.imgur.com/0Pyz8.png" alt="enter image description here"></p>
  
  <p>What should I do to make the querying in <code>Users</code> table return <code>ApplicationUser</code> type and why is it giving me return type as <code>IdentityUser</code></p>