IdentityUser字段
public virtual bool PhoneNumberConfirmed { get; set; }
public virtual bool TwoFactorEnabled { get; set; }
public virtual string SecurityStamp { get; set; }
public virtual DateTime? LockoutEndDateUtc { get; set; }
答案 0 :(得分:0)
忽略IdentityUser中的所需字段
modelBuilder.Entity<IdentityUser>().Ignore(c => c.PhoneNumberConfirmed )
.Ignore(c=> c.TwoFactorEnabled )
.Ignore(c=>c.SecurityStamp )
.Ignore(c=>c.LockoutEndDateUtc