Class ProductGroupRelation
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about related groups.
- Inheritance
-
Product
Group Relation
- Inherited Members
Examples
using Dynamicweb.Ecommerce.Products;
namespace Dynamicweb.Ecommerce.Examples.Products
{
public class ProductGroupRelationSaveHandlerSample
{
public void SaveProductGroupRelation(string prodId, string groupId)
{
var productGroupRelation = new ProductGroupRelation()
{
ProductId = prodId,
GroupId = groupId
};
Services.ProductGroups.Save(productGroupRelation);
}
}
}
Constructors
ProductGroupRelation()
Initializes a new instance of the Product
Properties
CreatedAt
Gets the created date and time
Property Value
GroupId
Gets or sets the group ID.
Property Value
- string
The group ID.
IsPrimary
Is this group primary
Property Value
ProductId
Gets or sets the product ID.
Property Value
- string
The product ID.
RuleId
Gets or sets the rule ID.
Property Value
- string
The rule ID.
Sorting
Gets or sets the sorting.
Property Value
- int
The sorting.
Methods
Clone()
Clones this instance.
Returns
Copy()
Copies this instance.