ASP.NET Identity remove column from AspNetUsers table

后端 未结 5 850
轻奢々
轻奢々 2021-01-31 21:12

When I use ASP.NET Identity first code approach, I want to generate columns in AspNetUsers table in my own way. I don\'t need to have stored multiple columns with null values. I

5条回答
  •  無奈伤痛
    2021-01-31 21:25

    You can create descendant of IdentityUser override properties your need and decorate they [NotMapped] attribute. Then create (recreate) identity tables.

    [NotMapped]
    public override bool EmailConfirmed { get; set; }
    
    

提交回复
热议问题