我们正在尝试将一个简单的会员应用迁移到Identity 2.0,但是我们遇到了以下错误。
Invalid column name 'Discriminator1'.
Invalid column name 'Discriminator1'.
Invalid column name 'Discriminator1'.
我已经按照迁移步骤正确进行了操作,但无法找到问题所在。
请问有人能够帮我找到问题所在并解决它吗?
欢迎任何建议。
以下是我们与ASP.NET登录相关的代码。
[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; }
...