Class ProductGroupRelation
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about related groups.
[Serializable]
public class ProductGroupRelation
- Inheritance
-
ProductGroupRelation
- 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 ProductGroupRelation class.
public ProductGroupRelation()
Properties
CreatedAt
Gets the created date and time
public DateTime CreatedAt { get; set; }
Property Value
GroupId
Gets or sets the group ID.
public string GroupId { get; set; }
Property Value
- string
The group ID.
IsPrimary
Is this group primary
public bool IsPrimary { get; set; }
Property Value
ProductId
Gets or sets the product ID.
public string ProductId { get; set; }
Property Value
- string
The product ID.
RuleId
Gets or sets the rule ID.
public string RuleId { get; set; }
Property Value
- string
The rule ID.
Sorting
Gets or sets the sorting.
public int Sorting { get; set; }
Property Value
- int
The sorting.
Methods
Clone()
Clones this instance.
public ProductGroupRelation Clone()
Returns
Copy()
Copies this instance.
public ProductGroupRelation Copy()