Table of Contents

Class SaveMethodCombo

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents properties for saving.
[Serializable]
public class SaveMethodCombo
Inheritance
SaveMethodCombo
Inherited Members

Examples

using System;
using System.Web;
using Dynamicweb.Ecommerce.Products;

namespace Dynamicweb.Ecommerce.Examples.Products
{
    public class ProductSaveMethodCombosHandlerSample
    {
        public SaveMethodComboCollection SaveMethodCombos()
        {
            var newSaveMethodComboColl = new SaveMethodComboCollection();
            foreach (ProductDataBaseField field in Enum.GetValues(typeof(ProductDataBaseField)))
            {
                var newSaveMethodCombo = new SaveMethodCombo
                {
                    ProductDataBaseField = field,
                    UpdateType = UpdateType.VariantDependent
                };
                newSaveMethodComboColl.Add(newSaveMethodCombo);
            }
            return newSaveMethodComboColl;
        }
        public SaveMethodComboCollection GetMethodCombos()
        {
            if (Dynamicweb.Context.Current.Items["Ecom.SaveMethodCombos"] == null)
            {
                SaveMethodComboCollection tempCol = new SaveMethodComboCollection();
                tempCol.LoadCombos();
                Dynamicweb.Context.Current.Items["Ecom.SaveMethodCombos"] = tempCol;
            }
            return (SaveMethodComboCollection)Dynamicweb.Context.Current.Items["Ecom.SaveMethodCombos"];
        }
    }
}

Properties

ProductDataBaseField

Gets or sets the product DB field.
public ProductDataBaseField ProductDataBaseField { get; set; }

Property Value

ProductDataBaseField
The product DB field.

UpdateType

Gets or sets the type of the update.
public UpdateType UpdateType { get; set; }

Property Value

UpdateType
The type of update.
To top