Table of Contents

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

id string

Group ID

groupParentId string

Parent group ID

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

string

InheritCategories

Do inherit categories.

public bool InheritCategories { get; set; }

Property Value

bool

IsPrimary

Is this group primary.

public bool IsPrimary { get; set; }

Property Value

bool

ParentId

Parent group ID.

public required string ParentId { get; set; }

Property Value

string

Sorting

Sort order of current group inside parent group's children collection.

public int Sorting { get; set; }

Property Value

int

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

To top