Is there an easy way to store user settings in an asp.net mvc app? For example, settings such as how often they want notifications, where to send notifications and anything else you can think of that the user would personalize for themselves.
Is there some built in thing in .net that can do this? I’d like to store the settings in the database with a foriegn key that links to that user.
If there is no built in .net features for this, how would I design my database table for settings? (just an example)
Do you want them to be persistent? If there aren’t many of them, store them in a cookie.
If you can’t store them in a cookie, then store them in a database table:
If you’re worried about normalization and all that, then you could always add another table:
And your UserPreferences table would become:
I could go forever on possible tables, or persistence mechanisms. The question is, what sort of preferences are these? Session? Lifetime?