Ok here is what I want to do but I just can't seem to figure out the best way to architect it.
I want to use the Membership, Profiles, & Roles features that are shipped with ASP.NET. I basically want to have 2 types of users. Each of them will have specific roles and they will share some properties but there will be properties that are specific to each type of user. So the 2 users would be Business Users(Could be a Business owner,employee,etc.) and Customer Users. I see there being several types of Roles, some for Business Users and some for Customers. For Example I could see a Business User having a Role as an Administrator and maybe one for a Business User as an Employee. I think I have that part figured out it is when I get to the Profiles that I get confused. I figure the default membership will work for both Business users and Customer users. Then I figured I would have several Roles, maybe Customer, BusAdmin, BusEmployee, etc.. But, with the profiles I want the Business & Customers to have similar properties such at address, city, state, zip, phone, etc. But I also want each type of user to have specific properties, for example a business may have a websiteURL, or a StoreLocation but the Customer would not have those properties. So this is where I am stuck. I thought about creating a custom ProfileProviders for each user type but, I am not even sure if I could do that. I messed with it some but couldn't really get 2 profiles to work. The only other solution I could come up with is just define all the properties of the Business User(since it should be a superset) and then just add Customers to the same profile but just leave a bunch of the properties blank or empty but, that seems like a waste. Does anyone have a suggestion on how this should be architected or what is the right way? Any suggestions would be appreciated. Thanks,mosheah.
Membership Roles Profiles
Business Users Customer ??
Customer Users BusAdmin
BusEmployee