Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将我的表(如客户、订单)与成员表中的用户联系起来的最佳方法是什么。有没有办法以某种方式使用 int 来绑定它?
您可以使用,User.ProviderUserKey但那是 GUID,而不是 int。这将映射到 aspnet_Membership 表中的 UserId 字段
User.ProviderUserKey