Try our conversational search powered by Generative AI!

ICart.Modified

Vote:
 

So... If I run

_orderRepository.Save(cart);

and then load the cart I cannot see that 

freshlyLoadedCart.Modified

is updated.

Am I missing something?

#222911
May 13, 2020 16:55
Vote:
 
#222916
May 13, 2020 19:08
Vote:
 

Yes, the cart is validated before save.

#222940
May 14, 2020 5:39
Vote:
 

I checked code for both Serializable and "legacy" cart and they both have Modified set to UtcNow before saving. Do you mind checking it in database to see if it was properly saved? 

#222947
May 14, 2020 9:16
Vote:
 

I checked database and CM, it looks correct - same if I check in a simple dummy controller. So it's something related to my context - will investigate.

Conclusion: ICart.Modified is working as expected.

#222948
May 14, 2020 11:25
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.