Hi all,
I'm trying to implement the more efficient method of updating my entities
CartEntity cart = new CartEntity();
cart.Id = cartId;
cart.IsNew = fasle;
rather than
CartEntity cart = new CartEntity(cartId);
The problem is that my primary key is an auto-incremented int field, so when I try and set the id of the cart, I get the error.
SD.LLBLGen.Pro.ORMSupportClasses.ORMFieldIsReadonlyException: The field 'Id' is read-only and can't be changed.
Obviously I understand why i get this error but is there any other way to update an entity without first retrieving it from the db?
Thanks,