Can I add a column to Membership Provider's tables to store a user's face picture?

半世苍凉 提交于 2019-12-13 22:37:22

问题


Should I add a column to users table to store user face pictures?

Or should I create a new table to save face pictures?


回答1:


You cannot alter Memebership's tables. If you add/edit/delete a column of one of those Membership tables, Membership Provider will stop working.

Instead, you want to create your own table, and make UserID of Membership's Users table as primary key as well as foreign key (which is basically one-to-one relationship).

Here is an example -



来源:https://stackoverflow.com/questions/18901017/can-i-add-a-column-to-membership-providers-tables-to-store-a-users-face-pictur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!