Domanda

Related

Implementing Custom Membership Provider Membership User Issues

Extending a Custom Membership Provider

Question

  1. If i have different SQL table schema for Roles, Profiles should i create Custom Providers for each of these "Role","Membership" and "Profiles". I am definitely sure many users are unhappy with profile fields that default implementation provides. For example below Profile will require a different override of MembershipProvider.CreateUser because mine does not contain a security question, status etc.

table schema

FirstName
LastName
Initial
Address
Company
FacebookId
LastLogin
È stato utile?

Soluzione

You need to create your own Custom membership provider so you can have whatever you want, for that I would point to my own answer on how you can accomplish that

Custom MembershipProvider in .NET 4.0

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top