MVC5 EF6 Seed Method: Cannot insert NULL into column 'Id' table AspNetUsers
问题 Entity Framework 6, MVC5, ASP Identity 2.0. I have followed this 2 tutorials to create the login part of the web application: part 1 - part 2 I created my own AppUser class from IdentityUser Class in another library project. I also have my data context from the IdentityDbContext public class DataContext: IdentityDbContext<AppUser> { public DataContext(): base("DefaultConnection") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<AppUser>().Property