Table of Contents

Class ProductRelatedGroup

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
Represents information about the product related groups.
[Serializable]
public class ProductRelatedGroup : ICloneable
Inheritance
ProductRelatedGroup
Implements
Inherited Members

Constructors

ProductRelatedGroup()

Initializes a new instance of the ProductRelatedGroup class.
public ProductRelatedGroup()

ProductRelatedGroup(IDataReader)

Initializes a new instance of the ProductRelatedGroup class.
[Obsolete("This method is no longer used.")]
public ProductRelatedGroup(IDataReader dataReader)

Parameters

dataReader IDataReader
DataReader.

ProductRelatedGroup(string)

Initializes a new instance of the ProductRelatedGroup class.
[Obsolete("This method is no longer used.")]
public ProductRelatedGroup(string id)

Parameters

id string
DB field name is RelatedGroupID.

ProductRelatedGroup(string, Language)

Initializes a new instance of the ProductRelatedGroup class.
[Obsolete("This method is no longer used.")]
public ProductRelatedGroup(string id, Language language)

Parameters

id string
DB field name is RelatedGroupID.
language Language
DB field name is RelatedGroupLanguageID.

Properties

GroupId

Gets or sets the group ID.
public string GroupId { get; set; }

Property Value

string
The group ID.

LanguageId

Gets or sets the language id.
[Obsolete("Use Translations instead.")]
public string LanguageId { get; set; }

Property Value

string

Name

Gets or sets the name.
[Obsolete("Use GetName and SetName instead.")]
public string Name { get; set; }

Property Value

string

Products

Gets or sets the products.
[Obsolete("This property is no longer used.")]
public ProductCollection Products { get; set; }

Property Value

ProductCollection
The products.

SortOrder

Gets or sets the sort order.
public int SortOrder { get; set; }

Property Value

int
The sort order.

Translations

Gets the translations
public TranslationCollection<ProductRelatedGroupTranslation> Translations { get; }

Property Value

TranslationCollection<ProductRelatedGroupTranslation>

Methods

Clone()

Clones the related group.
public object Clone()

Returns

object
A new instance of the ProductRelatedGroup.

Delete()

Deletes this instance from DB.
[Obsolete("Use ProductRelatedGroupService.Delete instead.")]
public void Delete()

Delete(string)

Deletes the instance from DB.
[Obsolete("Use ProductRelatedGroupService.Delete instead.")]
public void Delete(string id)

Parameters

id string
DB field name is RelatedGroupID.

Delete(string, string)

Deletes the instance from DB.
[Obsolete("Use ProductRelatedGroupService.Delete instead.")]
public void Delete(string id, string langId)

Parameters

id string
DB field name is RelatedGroupID.
langId string
DB field name is RelatedGroupLanguageID.

GetAllRelatedGroups()

Gets all related groups.
[Obsolete("Use ProductRelatedGroupService.GetAllRelatedGroups instead.")]
public static IEnumerable<ProductRelatedGroup> GetAllRelatedGroups()

Returns

IEnumerable<ProductRelatedGroup>

GetName(string)

Gets the name of the related group for the given language.
public string GetName(string languageId)

Parameters

languageId string

Returns

string

GetRelatedGroups()

Gets the related groups.
[Obsolete("Use ProductRelatedGroupService.GetRelatedGroupsByLanguage instead.")]
public static IEnumerable<ProductRelatedGroup> GetRelatedGroups()

Returns

IEnumerable<ProductRelatedGroup>

GetRelatedGroupsByLanguage()

Gets the related groups by language.
[Obsolete("Use ProductRelatedGroupService.GetRelatedGroupsByLanguage instead.")]
public static IEnumerable<ProductRelatedGroup> GetRelatedGroupsByLanguage()

Returns

IEnumerable<ProductRelatedGroup>

GetRelatedGroupsWithProducts(Product)

Gets the related groups with products.
[Obsolete("Use ProductRelatedGroupService.GetRelatedGroupsWithProducts instead.")]
public static IEnumerable<ProductRelatedGroup> GetRelatedGroupsWithProducts(Product product)

Parameters

product Product
The product.

Returns

IEnumerable<ProductRelatedGroup>

GetRelatedGroupsWithProducts(Product, bool)

Gets the related groups with products.
[Obsolete("Use ProductRelatedGroupService.GetRelatedGroupsWithProducts instead.")]
public static IEnumerable<ProductRelatedGroup> GetRelatedGroupsWithProducts(Product product, bool isFrontend)

Parameters

product Product
The product.
isFrontend bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelatedGroup>

Lock()

Locks this instance.
[Obsolete("This method is no longer used.")]
public void Lock()

Save(string)

Saves the properties into DB.
[Obsolete("Use ProductRelatedGroupService.Save instead.")]
public void Save(string id)

Parameters

id string
DB field name is RelatedGroupID.

SetName(string, string)

Sets the name of the related group for the given language.
public void SetName(string languageId, string name)

Parameters

languageId string
name string

SetProperties()

Sets empty string for the properties GroupID and Name.
[Obsolete("This method is no longer used.")]
public void SetProperties()
To top