Table of Contents

Class AssortmentProductRelation

Namespace
Dynamicweb.Ecommerce.Assortments
Assembly
Dynamicweb.Ecommerce.dll
Assortment product relation class
[Serializable]
public class AssortmentProductRelation : AssortmentRelation
Inheritance
AssortmentProductRelation
Inherited Members

Constructors

AssortmentProductRelation()

Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation()
See Also

AssortmentProductRelation(Assortment)

Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(Assortment assortment)

Parameters

assortment Assortment
The assortment.
See Also

AssortmentProductRelation(Assortment, Product)

Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(Assortment assortment, Product product)

Parameters

assortment Assortment
The assortment.
product Product
The product.
See Also

AssortmentProductRelation(IDataReader)

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

Parameters

dataReader IDataReader
The data reader.
See Also

AssortmentProductRelation(string)

Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(string assortmentID)

Parameters

assortmentID string
The assortment identifier.
See Also

AssortmentProductRelation(string, string, string)

Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(string assortmentID, string productID, string productVariantID)

Parameters

assortmentID string
The assortment identifier.
productID string
The product identifier.
productVariantID string
The product variant identifier.
See Also

Properties

Product

Gets the product.
public Product Product { get; }

Property Value

Product
The product.
See Also

ProductID

Gets or sets the product identifier.
public string ProductID { get; set; }

Property Value

string
The product identifier.
See Also

ProductVariantID

Gets or sets the product variant identifier.
public string ProductVariantID { get; set; }

Property Value

string
The product variant identifier.
See Also

Methods

Delete()

Deletes this instance.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelation instead.")]
public override void Delete()
See Also

Delete(Assortment, Product)

Deletes the assortment relations by the specified assortment and product.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(Assortment assortment, Product product)

Parameters

assortment Assortment
The assortment.
product Product
The product.
See Also

Delete(Assortment, ProductCollection)

Deletes the assortment relations by the specified assortment and products.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(Assortment assortment, ProductCollection products)

Parameters

assortment Assortment
The assortment.
products ProductCollection
The products.
See Also

Delete(Assortment, string, string)

Deletes the assortment relations by the specified assortment, product ID and product variant ID.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(Assortment assortment, string productID, string productVariantID)

Parameters

assortment Assortment
The assortment.
productID string
The product ID.
productVariantID string
The product variant ID.
See Also

Delete(Product)

Deletes the assortment relations by the specified product.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(Product product)

Parameters

product Product
The product.
See Also

Delete(ProductCollection)

Deletes the assortment relations by the specified products.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(ProductCollection products)

Parameters

products ProductCollection
The products.
See Also

Delete(IEnumerable<AssortmentRelation>)

Deletes the specified assortment product relations.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(IEnumerable<AssortmentRelation> assortmentRelations)

Parameters

assortmentRelations IEnumerable<AssortmentRelation>
The assortment product relations.
See Also

Delete(string, string)

Deletes the assortment relations by the specified product and product variant ID.
[Obsolete("Use Services.Assortments.DeleteProductAssortmentRelations instead.")]
public static void Delete(string productID, string productVariantID)

Parameters

productID string
The product ID.
productVariantID string
The product variant ID.
See Also

Fill(IDataReader)

Fills the assortment relation properties from the specified data reader.
[Obsolete("This method is no longer used.")]
public override void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.
See Also

GetAssortmentRelationsByProduct(Product)

Gets the assortment relations by specified product.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByProductId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByProduct(Product product)

Parameters

product Product
The product.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified Product
See Also

GetAssortmentRelationsByProductID(string, string)

Gets the assortment relations by product ID and product variant ID.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByProductId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByProductID(string productID, string productVariantID)

Parameters

productID string
The product ID.
productVariantID string
The product variant ID.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified product ID and product variant ID.
See Also

Save()

Saves this instance.
[Obsolete("Use Services.Assortments.SaveAssortmentRelation instead.")]
public override void Save()
See Also

See Also

To top