ASP.NET Identity

前端 未结 4 1215
生来不讨喜
生来不讨喜 2021-02-02 12:44

I\'m currently building a new ASP.NET MVC 5 project which I want to release around September. I need to choose a membership system, but I\'m currently quite confused about which

4条回答
  •  执笔经年
    2021-02-02 13:36

    I would advise against using SimpleMembership as well. You can still use int IDs in your database, you would just need to ToString() the ID when plugging in your database entity, i.e.:

    public class MyUser : IUser {
       [Key]
       int UserID { get; set; }
    
       string IUser.Id { get { return UserId.ToString(); } }
    }
    

提交回复
热议问题