Sample Code for Creating Custom Membership Provider

天大地大妈咪最大 提交于 2019-11-30 10:14:59

You can't use the default provider's code for your custom provider, that is why you are implementing a custom one, to tweak it according to your requirements, use your own db tables etc.

Take a look at my blog posts about custom membership, custom role providers and custom membership user. There is an example there of how you can use your own database to get/set membership information.

torm

Here's a of sample implementation of custom MembershipProvider on MSDN.

http://msdn.microsoft.com/en-us/library/6tc47t75.aspx

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