Class VariantGroupProperty
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
A variant property in a variant group.
public class VariantGroupProperty
- Inheritance
-
VariantGroupProperty
- Inherited Members
Constructors
VariantGroupProperty()
Initializes a new instance of the VariantGroupProperty class.
public VariantGroupProperty()
VariantGroupProperty(IDataReader)
Initializes a new instance of the VariantGroupProperty class.
[Obsolete("Use VariantGroupService instead.")]
public VariantGroupProperty(IDataReader dataReader)
Parameters
dataReader
IDataReader- The data reader.
Properties
GroupId
Gets or sets the group id.
public string GroupId { get; set; }
Property Value
Id
Gets or sets the id.
public string Id { get; set; }
Property Value
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
SystemName
Gets or sets the system name.
public string SystemName { get; set; }
Property Value
Methods
ClearCache()
Clears variant group properties cache.
[Obsolete("Use VariantGroupService instead.")]
public static void ClearCache()
Delete()
Deletes this instance
[Obsolete("Use VariantGroupService instead.")]
public void Delete()
Delete(VariantGroup)
Deletes instance with the specified parameters.
[Obsolete("Use VariantGroupService instead.")]
public static void Delete(VariantGroup variantGroup)
Parameters
variantGroup
VariantGroup- The instance of the VariantGroup.
Delete(string)
Deletes instance with the specified parameters.
[Obsolete("Use VariantGroupService instead.")]
public static void Delete(string id)
Parameters
id
string- The variant group property id.
Fill(IDataReader)
Initializes properties with new data.
[Obsolete("Use VariantGroupService instead.")]
public void Fill(IDataReader dataReader)
Parameters
dataReader
IDataReader- The data reader.
GetAllVariantGroupProperties()
Gets all variant group's properties.
[Obsolete("Use VariantGroupService instead.")]
public static IEnumerable<VariantGroupProperty> GetAllVariantGroupProperties()
Returns
- IEnumerable<VariantGroupProperty>
- The collection of the VariantGroupProperty.
GetPropertiesByVariantGroupId(string)
Gets the variant group's properties.
[Obsolete("Use VariantGroupService instead.")]
public static IEnumerable<VariantGroupProperty> GetPropertiesByVariantGroupId(string variantGroupId)
Parameters
variantGroupId
string- The variant group id.
Returns
- IEnumerable<VariantGroupProperty>
- The collection of the VariantGroupProperty.
Save()
Saves group property
[Obsolete("Use VariantGroupService instead.")]
public void Save()
Save(string)
Saves group property
[Obsolete("Use VariantGroupService instead.")]
public void Save(string variantGroupPropertyId)
Parameters
variantGroupPropertyId
string- The variant group property id.