且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET身份

更新时间:2023-01-23 12:48:54

我会建议不要使用SimpleMembership为好。您仍然可以使用INT的ID在你的数据库,数据库中的实体,即堵你们什么时候只需要toString()将编号:

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(); } }
}