Is it possible to simply inherit from ProviderBase to write a MembershipProvider, instead of inhering from System.Web.Security.MembershipProvider?
There’s just so much junk in the default one, we really want something much, much simpler.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
There is no
IMembershipProviderinterface.The membership infrastructure requires a class derived from the abstract MembershipProvider class.
Otherwise, how would asp.net know which method to call to, for instance, GetUser?
What you are calling ‘junk’ are simply abstract methods that define the API.
If you do not want/need to implement a feature, just fill the stub with a
NotImplementedException.