Name cannot be null or empty. asp.net identity mvc 5 + EntityFreamwork

前端 未结 2 1248
悲&欢浪女
悲&欢浪女 2021-02-15 09:34

Has anyone had a problem with this. He throws me the error: Name can not be null or empty. But in the table do not have the attribute called \"Name\". I want to customize Asp.Ne

2条回答
  •  醉梦人生
    2021-02-15 09:58

    Solved (for me at least) By REMOVING the UserName property from the customized identity (its in the GitHub ASPNetIdentitySample project which is where I guess people are getting it from). Its hiding the UserName property in IdentityUser

提交回复
热议问题