Storing profile information for asp.net users in separate columns instead of 1 long column?
-
18-09-2019 - |
Question
When you create profile information for an asp.net user, it creates all the property values in 1 field. This is not the easiest thing to query. Is there a way to tell it to store the values in separate columns like Address, City, State, Zipcode instead of a column called PropertyStringValues where the value might be something like City:s:0:10State:s:10:15.....
Solution
Yes, but you'll have to use a custom profile provider. This one, created by Microsoft employee Hao Kung should do what you are looking for.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow