ASP.NET SQL 成员资格表

发布于 2024-09-27 14:53:59 字数 65 浏览 0 评论 0原文

将我的表(例如客户、订单)与成员资格表中的用户联系起来的最佳方法是什么?有没有办法以某种方式使用 int 来绑定它?

What's the best way to tie my tables (like Customer, Orders) to the Users in the membership tables. Is there a way to tie it using an int somehow?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

噩梦成真你也成魔 2024-10-04 14:54:00

您可以使用User.ProviderUserKey,但它是一个 GUID,而不是一个 int。这将映射到 aspnet_Membership 表中的 UserId 字段

You can use the User.ProviderUserKey but that is a GUID, not an int. That will map to the UserId field in the aspnet_Membership table

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文