Class GroupRelation
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Class for parent-child relations between product groups
[Serializable]
public class GroupRelation
- Inheritance
-
GroupRelation
- Inherited Members
Constructors
GroupRelation()
Initializes a new instance of the GroupRelation class.
public GroupRelation()
GroupRelation(string, string)
Create groups relation using group ID and parent group ID
[SetsRequiredMembers]
public GroupRelation(string id, string groupParentId)
Parameters
Remarks
REMARK: Remember to save it after creating. Please use GroupRelationService to save.
Properties
Id
Group ID.
public required string Id { get; set; }
Property Value
InheritCategories
Do inherit categories.
public bool InheritCategories { get; set; }
Property Value
IsPrimary
Is this group primary.
public bool IsPrimary { get; set; }
Property Value
ParentId
Parent group ID.
public required string ParentId { get; set; }
Property Value
Sorting
Sort order of current group inside parent group's children collection.
public int Sorting { get; set; }
Property Value
Methods
ClearCache()
Clears the relations cache.
public static void ClearCache()
Clone()
Create in-memory copy of current relation
public GroupRelation Clone()
Returns
- GroupRelation
Copied relation