101 reputation
bio website
location Jacksonville, FL
age 31
visits member for 1 year, 3 months
seen Jun 27 at 19:22
var sleeping = "edoc.ni.maerd.i";
var result = "";
foreach(var c in sleeping)
    result = c + result;

comment Adding field to the class at runtime - design pattern
Not sure what language you are using, but if it is C# you could use a dynamic type which basically stores a KVP in a dictionary kinda like what you are doing on products and allows you to just tack on properties without having to directly add them to the collection as a collection. You will not have strong typing though. I know you asked for a design pattern but I don't feel you would need anything complex to use them. msdn.microsoft.com/en-us/magazine/gg598922.aspx
awarded  Supporter