How to use ASP.Net membership with my own tables?
-
02-06-2021 - |
Domanda
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.
Soluzione
You'd have to implement your own custom MembershipProvider
.
Altri suggerimenti
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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow