For example, I wish to set a default color and size (Options) for my Product and retrieve them from the instance at a later stage?
So pseudo code:
Code: Select all
Product myProduct = new Product();
myProduct.Load(_productId);
// SET DEFAULTS FOR COLOR
_colorOptionId = 2;
myProduct._colorOptionId.OptionChoiceId = 23;
// OTHER STUFF....
...
// GET VALUE FROM INSTANCE
int instanceChoice = myProduct._colorOptionId.OptionChoiceId; // = 23