November Happy Hour will be moved to Thursday December 5th.

Dynamic Data Store - Properties are mixed after renaming namespace.

Vote:
 

Hi,

In our current project we have multiple items that we save to the DDS, for example (only showing the important part):

public DateTime DatePurchased { get; set; }
public DateTime? LoanEndDate { get; set; }
public DateTime? DateDeleted { get; set; }

These have ben stored in namespace A so far - And in the big table these have been DateTime01, DateTIme02, DateTime03.

After a restructuring of the code the class is now stored in namespace B.

Now the properties are stored in DateTime03, DateTime02, DateTime01

Which means that if I search for "DateDeleted" it will look in DateTime01 when in fact it should be looking in DateTime03 (for the old namespace) and DateTime01 for the new namespace.

I have decorated my class with the following:

[EPiServerDataStore(AutomaticallyRemapStore = true, AutomaticallyCreateStore = true)]

My class wasn't decorated when in namespace A, but when we moved namespace we used this to remap the store.

But it apparently didn't work on the properties of the class.

Does anyone have a suggestion to what I should try? I read that there exist a "remap" on property level but I am not sure how to use it. (oldname vs newname - Since I haven't renamed it).

Any help is appreciated.

/Mads

#172477
Dec 05, 2016 8:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.