November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You can add the [EPiServerDataStore(AutomaticallyRemapStore = true)] attribute to UserPet.cs class declaration. The next time you access UserPet it'll automatically remap everything for you.
private static DynamicDataStore Store { get { return DynamicDataStoreFactory.Instance.GetCreateEnsureStore(typeof(UserPet)); } }
Frederik
Sorry Jan, the code above is not the correct one. Should be:
private static DynamicDataStore Store { get { return typeof(UserPet).GetOrCreateStore(); } }
See CMS 6 R2 Dynamic Data Store: How to use the new store creation and rempping functionality for more.
Frederik
I have an existing Dynamic Data Store "UserPetStore" and I have a class UserPet.cs which populates this store.
Whenever I add a new field in UserPet.cs. I always have to recreate the UserPetStore to get it populated properly.
Is this the expected behaviour? This is not ok especially on a live site.
Do I need to modfiy a mapping table or something?
Thanks.