title: Invalid Column Name Discriminator when try to create Role
body: <p>In my asp.net MVC 5 project, i cannot figure out why im getting this error:</p>
  
  <pre><code>Invalid column name 'Discriminator'.
  Invalid column name 'Discriminator'.
  Invalid column name 'Discriminator'.
  Invalid column name 'Description'.
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code> RoleManager&lt;IdentityRole&gt; _roleManager = new RoleManager&lt;IdentityRole&gt;(
          new RoleStore&lt;IdentityRole&gt;(new ApplicationDbContext()));
  
      UserManager&lt;ApplicationUser&gt; _userManager = new UserManager&lt;ApplicationUser&gt;(
          new UserStore&lt;ApplicationUser&gt;(new ApplicationDbContext()));
  
  
      public bool CreateRole(string name, string description = "")
      {
          var idResult = _roleManager.Create(new IdentityRole(name)).Succeeded;
          return idResult;
      }
  </code></pre>
  
  <p>When i try to execute this method i get the invalid column error. what it could be?</p>
  
  <p>EDIT:</p>
  
  <p>ApplicationDbContext</p>
  
  <pre><code> public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser&gt;
  {
      public ApplicationDbContext()
          : base("DefaultConnection")
      {
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          if (modelBuilder == null)
          {
              throw new ArgumentNullException("modelBuilder");
          }
          modelBuilder.Entity&lt;IdentityUser&gt;().ToTable("AspNetUsers");
  
          EntityTypeConfiguration&lt;ApplicationUser&gt; table =
              modelBuilder.Entity&lt;ApplicationUser&gt;().ToTable("AspNetUsers");
  
          table.Property((ApplicationUser u) =&gt; u.UserName).IsRequired();
  
         modelBuilder.Entity&lt;ApplicationUser&gt;().HasMany&lt;IdentityUserRole&gt;((ApplicationUser u) =&gt; u.Roles);
          modelBuilder.Entity&lt;IdentityUserRole&gt;().HasKey((IdentityUserRole r) =&gt;
              new { UserId = r.UserId, RoleId = r.RoleId }).ToTable("AspNetUserRoles");
  
  
  
          entityTypeConfiguration.HasRequired&lt;IdentityUser&gt;((IdentityUserLogin u) =&gt; u.User);
          EntityTypeConfiguration&lt;IdentityUserClaim&gt; table1 =
              modelBuilder.Entity&lt;IdentityUserClaim&gt;().ToTable("AspNetUserClaims");
  
          table1.HasRequired&lt;IdentityUser&gt;((IdentityUserClaim u) =&gt; u.User);
  
          // Add this, so that IdentityRole can share a table with ApplicationRole:
          modelBuilder.Entity&lt;IdentityRole&gt;().ToTable("AspNetRoles");
  
          // Change these from IdentityRole to ApplicationRole:
          EntityTypeConfiguration&lt;ApplicationRole&gt; entityTypeConfiguration1 =
              modelBuilder.Entity&lt;ApplicationRole&gt;().ToTable("AspNetRoles");
  
          entityTypeConfiguration1.Property((ApplicationRole r) =&gt; r.Name).IsRequired();
      }
  
  }
  </code></pre>