-
标识用户字段
public virtual bool PhoneNumberConfirmed { get; set; } public virtual bool TwoFactorEnabled { get; set; } public virtual string SecurityStamp { get; set; } public virtual DateTime? LockoutEndDateUtc { get; set; }
忽略来自 IdentityUser 的所需字段
modelBuilder.Entity<IdentityUser>().Ignore(c => c.PhoneNumberConfirmed )
.Ignore(c=> c.TwoFactorEnabled )
.Ignore(c=>c.SecurityStamp )
.Ignore(c=>c.LockoutEndDateUtc