简体   繁体   English

ASP.NET成员资格表

[英]ASP.NET Membership Tables

When you create a new ASP.NET internet application, you get the built in membership tables and controllers etc. There are 5 tables created: 创建新的ASP.NET Internet应用程序时,您将获得内置的成员资格表和控制器等。创建了5个表:

UserProfile
webpages_Membership
webpages_OAuthMembership
webpages_Roles
webpages_UsersInRoles

I understand the basic concept of how all these work but I have a question on why is a UserProfile create along with the webpages_Membership? 我了解所有这些工作原理的基本概念,但是我有一个问题,为什么要与webpages_Membership一起创建UserProfile? Can't these 2 tables practically be combined together? 这两个表实际上不能组合在一起吗? If that's not how it works, can you explain to me why the 2 files were created. 如果这不是它的工作原理,那么您可以向我解释为什么创建这两个文件。

No, they cannot be combined, because a user profile has nothing to do with membership. 不可以,它们不能合并,因为用户个人资料与成员资格无关。 Membership is about your user id, password, and authentication. 成员资格与您的用户ID,密码和身份验证有关。 User Profile is about things like name, address, etc.. 用户个人资料是关于姓名,地址等的信息。

It's designed this way so that you can extend the user profile to include whatever information you want. 它是通过这种方式设计的,因此您可以扩展用户配置文件以包括所需的任何信息。 While the Membership tables do not change, because those are "hard wired" into the provider. 虽然成员资格表不会更改,因为这些表“硬连接”到提供程序中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM