We are trying to migrate a simple membership application to Identity 2.0, but we are getting the following error.
Invalid column name 'Discriminator1'.
Invalid column name 'Discriminator1'.
Invalid column name 'Discriminator1'.
I could not find where the problem is as I have followed all the migration steps properly.
Can anyone help find where the problem might be and how to fix it?
Any suggestion is welcome.
We have the following code related the ASP.NET logins.
[Table("AspNetUserLogins")]
public partial class AspNetUserLogins : IdentityUserLogin<Guid>
{
}
[Table("AspNetUserClaims")]
public partial class AspNetUserClaims : IdentityUserClaim<Guid>
{
}
[Table("t_User")]
public partial class User : IdentityUser<Guid, AspNetUserLogins, AspNetUserInRoles, AspNetUserClaims>
{
[Key]
[Column("UserId")]
[DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
public override Guid Id { get; set; }
[Column("Username")]
public override string UserName { get; set; }
[NotMapped]
public Guid UserId { get { return base.Id; } }
public Guid ApplicationId { get; set; }
public DateTime? CreationDate { get; set; }
public string Discriminator { get; set; }
public int? FailedPasswordAnswerAttemptCount { get; set; }
public DateTime? FailedPasswordAnswerAttemptWindowStart { get; set; }
...