How to use ASP.Net membership with my own tables?
-
02-06-2021 - |
Question
Usually, for using the ASP.Net membership APIs, I import the API's tables to my database and use it. But there is a lot of tables and fields that I don't want them. I just want to have my USERS table that have three fields (like; UserId, Username, Password. Just this). So how can I connect this API to my own table?
Thanks in advance.
La solution
You'd have to implement your own custom MembershipProvider
.
Autres conseils
You could create a custom membership provider. There's a video on asp.net that shows you how to do that: http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-a-custom-membership-provider
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow