Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,I want to store some information for a member in Umbraco using the AdditionalData dictionary field.
First I get the member (this code is located in a SurfaceController):
var member = Services.MemberService.GetByUsername("username");
Then I add the data
And save it.
When I fetch the same member again after it has been saved, the member does not contain the AdditionalData anymore.
I don't want to create an extra property to save this data. I want to use it as described in the documentation. (IUmbracoEntity: AdditionalData property)
Some entities may expose additional data that other's might not, this custom data will be available in this collection
Q: Am I missing something or could someone point me in the right direction?
Q: Is the AdditionalData stored somewhere or is this temporary
Hi there Tom!
Looking at the umbraco source code (7.2.4) IMember.AdditionalData is only used with "NewPassword", "GeneratedPassword", "IsContainer" key. I don't think what you desire for is implemented, and based on these facts this property maybe shall rather be internal than public.
Darn, I hoped to use it as some kind of dynamic value without a visual property that needs to/could be managed in umbraco.But looking at the Save function itself, it has no knowlage of saving specif properties (link github around line 939) it just uses the .Serialize() function.
Do you or someone else know maybe if there is some kind of mapping of what properties are serialized?
EDIT; Found the mapper :p (link github) no sign of saving the additional data.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted