kentico_michal
-
10/30/2011 4:53:16 AM
RE:How to Add Custom User Settings to UserInfo object
Hello,
The UserSettingsID field is ID of related record from CMS_UserSettings table. So, you should not override its value.
I would recommend you to add a custom field to CMS_User table using Site manager interface [Development -> System tables -> edit User table -> add a new attribute].
Then, you can access (set and get value) the new field using SetValue and TryGetValue of UserInfo class:
UserInfo.TryGetValue(string columnName, out object value)
UserInfo.SetValue(string columnName, object value)
Best regards, Michal Legen
|