title: Cannot create a DbSet for 'IdentityUser' because this type is not included in the model for the context
body: <p>Trying to all code to get all users with their roles so I had to change up my code a bit and ran into this error. I'm not sure what I did wrong, I narrowed it down to my startup.cs and <code>ApplicationDBContect</code> class. I have no errors, and I might need a migration, haven't done that to prevent causing more issues.</p>
  
  <p>I reference <a href="https://stackoverflow.com/questions/50744006/asp-net-core-2-1-identityuser-issue-cannot-create-a-dbset-for-identityuser">Stackoverflow question</a> and had other errors.</p>
  
  <p><strong>ApplicationDBContext.cs</strong></p>
  
  <pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser, ApplicationRole, string, IdentityUserClaim&lt;string&gt;,
  ApplicationUserRole, IdentityUserLogin&lt;string&gt;,
  IdentityRoleClaim&lt;string&gt;, IdentityUserToken&lt;string&gt;&gt;
  {
      public ApplicationDbContext(DbContextOptions&lt;ApplicationDbContext&gt; options)
         : base(options)
      {
      }
      protected override void OnModelCreating(ModelBuilder builder)
      {
          base.OnModelCreating(builder);
  
          builder.Entity&lt;ApplicationUserRole&gt;(userRole =&gt;
          {
              userRole.HasKey(ur =&gt; new { ur.UserId, ur.RoleId });
  
              userRole.HasOne(ur =&gt; ur.Role)
                  .WithMany(r =&gt; r.UserRoles)
                  .HasForeignKey(ur =&gt; ur.RoleId)
                  .IsRequired();
  
              userRole.HasOne(ur =&gt; ur.User)
                  .WithMany(r =&gt; r.UserRoles)
                  .HasForeignKey(ur =&gt; ur.UserId)
                  .IsRequired();
          });
      }
  
      public DbSet&lt;ApplicationUser&gt; ApplicationUser { get; set; }
  }
  </code></pre>
  
  <p><strong>Startup.cs</strong></p>
  
  <pre><code>services.AddDbContext&lt;ApplicationDbContext&gt;(options =&gt;
              options.UseSqlServer(
                  Configuration.GetConnectionString("DefaultConnection")));
  
  services.AddIdentity&lt;IdentityUser, IdentityRole&gt;()
              .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;()
              .AddDefaultUI()
              .AddDefaultTokenProviders();
  </code></pre>