Наследование: IOrphanable, ICustomField
Пример #1
0
        public virtual void SetCustomField(string name, string value)
        {
            var fieldValue = CustomFields.FirstOrDefault(f => f.FieldName == name);

            if (fieldValue != null)
            {
                fieldValue.FieldValue = value;
            }
            else
            {
                fieldValue = new ProductCustomField(name, value);
                CustomFields.Add(fieldValue);
            }
        }
Пример #2
0
 public virtual void SetCustomField(string name, string value)
 {
     var fieldValue = CustomFields.FirstOrDefault(f => f.FieldName == name);
     if (fieldValue != null)
     {
         fieldValue.FieldValue = value;
     }
     else
     {
         fieldValue = new ProductCustomField(name, value);
         CustomFields.Add(fieldValue);
     }
 }