Class AssortmentItem
- Namespace
- Dynamicweb.Ecommerce.Assortments
- Assembly
- Dynamicweb.Ecommerce.dll
AssortmentItem class.
[Serializable]
public class AssortmentItem
- Inheritance
-
AssortmentItem
- Inherited Members
Constructors
AssortmentItem()
Initializes a new instance of the AssortmentItem class.
public AssortmentItem()
AssortmentItem(IDataReader)
Initializes a new instance of the AssortmentItem class.
[Obsolete("This method is no longer used.")]
public AssortmentItem(IDataReader dataReader)
Parameters
dataReader
IDataReader- The data reader containing the values used to fill the property values of this instance.
Properties
Assortment
Gets the Assortment this AssortmentItem is part of.
[Obsolete("Use Services.Assortments.GetAssortmentById(string) instead.")]
public Assortment Assortment { get; }
Property Value
- Assortment
- The assortment.
AssortmentID
Gets or sets the Assortment this AssortmentItem.
public string AssortmentID { get; set; }
Property Value
- string
- The assortment identifier.
AutoID
Gets the auto id of this AssortmentItem.
public int AutoID { get; }
Property Value
- int
- The automatic identifier.
LanguageID
Gets or sets the language id of the Product this AssortmentItem represents.
public string LanguageID { get; set; }
Property Value
- string
- The language identifier.
ProductID
Gets or sets the product id of the Product this AssortmentItem represents.
public string ProductID { get; set; }
Property Value
- string
- The product identifier.
ProductVariantID
Gets or sets the product variant id of the Product this AssortmentItem represents.
public string ProductVariantID { get; set; }
Property Value
- string
- The product variant identifier.
RelationAutoID
Gets or sets the relation auto id of the AssortmentRelation this AssortmentItem is part of.
public int RelationAutoID { get; set; }
Property Value
- int
- The relation automatic identifier.
RelationType
Gets or sets the type of the AssortmentRelation this AssortmentItem is part of.
public string RelationType { get; set; }
Property Value
- string
- The type of the relation.
Methods
ClearCache()
Clears the cache.
[Obsolete("Use Services.Assortments.ClearCache instead.")]
public static void ClearCache()
Delete()
Deletes this instance.
[Obsolete("Use Services.Assortments.DeleteAssortmentItem instead.")]
public void Delete()
Delete(Assortment)
Deletes the AssortmentItems in the specified assortment.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(Assortment assortment)
Parameters
assortment
Assortment- Assortment items related to this Assortment are deleted.
Delete(AssortmentRelation)
Deletes the AssortmentItems with the specified AssortmentRelation.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(AssortmentRelation assortmentRelation)
Parameters
assortmentRelation
AssortmentRelation- The assortment relation used to find assortment items to delete.
Delete(AssortmentRelationType, int)
Deletes the AssortmentItems with the specified relation type and relation auto id.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(AssortmentRelationType relationType, int relationAutoID)
Parameters
relationType
AssortmentRelationType- Type of the relation to use to find the assortment items to delete.
relationAutoID
int- The relation auto id to use to find the assortment items to delete.
Delete(IEnumerable<AssortmentItem>)
Deletes the specified AssortmentItems.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(IEnumerable<AssortmentItem> assortmentItems)
Parameters
assortmentItems
IEnumerable<AssortmentItem>- The assortment item list containing the assortment items to delete.
Delete(IEnumerable<AssortmentRelation>)
Deletes the AssortmentItems with the specified AssortmentRelations.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(IEnumerable<AssortmentRelation> assortmentRelations)
Parameters
assortmentRelations
IEnumerable<AssortmentRelation>- The assortment relations used to find assortment items to delete.
Delete(string, int)
Deletes AssortmentItems with the specified relation type and relation auto ID.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems instead.")]
public static void Delete(string relationType, int relationAutoID)
Parameters
relationType
string- Type of the relation to use to find the assortment items to delete.
relationAutoID
int- The relation auto id to use to find the assortment items to delete.
Delete(string, string)
Deletes the AssortmentItems with the specified assortment id and language id.
[Obsolete("Use Services.Assortments.DeleteAssortmentItems(string) instead.")]
public static void Delete(string assortmentID, string languageID)
Parameters
assortmentID
string- The assortment id to use to find assortment items to delete.
languageID
string- The language id to use to find assortment items to delete.
Fill(IDataReader)
Fills property values from the given data reader.
[Obsolete("This method is no longer used.")]
public void Fill(IDataReader dataReader)
Parameters
dataReader
IDataReader- The data reader containing the values used to fill the property values of this instance.
GetAllAssortmentItems()
Gets all AssortmentItems.
[Obsolete("Use Services.Assortments.GetAllAssortmentItems instead.")]
public static IEnumerable<AssortmentItem> GetAllAssortmentItems()
Returns
- IEnumerable<AssortmentItem>
- An IEnumerable<T> containing all assortment items.
GetAssortmentItemsByAssortment(Assortment)
Gets all AssortmentItems related to the specified Assortment.
[Obsolete("Use Assortment.Items instead")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByAssortment(Assortment assortment)
Parameters
assortment
Assortment- Assortment items with relations to this assortment are returned.
Returns
- IEnumerable<AssortmentItem>
- An IEnumerable<T> containing all assortment items related to the specified assortment.
GetAssortmentItemsByAssortmentID(string, string)
Gets all AssortmentItems related to the specified assortment and language.
[Obsolete("Use Assortment.Items instead")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByAssortmentID(string assortmentID, string languageID)
Parameters
assortmentID
string- The assortment id to use to find assortment items.
languageID
string- The language id to use to find assortment items.
Returns
- IEnumerable<AssortmentItem>
- An IEnumerable<T> containing all assortment items related to the specified assortment in the specified language.
GetAssortmentItemsByAssortmentRelation(AssortmentRelation)
Gets all AssortmentItems with the specified AssortmentRelation.
[Obsolete("Use Services.Assortments.GetAssortmentItemsByAssortmentRelation instead")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByAssortmentRelation(AssortmentRelation assortmentRelation)
Parameters
assortmentRelation
AssortmentRelation- The assortment relation used to find assortment items.
Returns
- IEnumerable<AssortmentItem>
- IEnumerable(Of AssortmentItem).
GetAssortmentItemsByAssortmentRelation(string, int)
Gets all AssortmentItems with the specified relation type and relation auto id.
[Obsolete("Use Services.Assortments.GetAssortmentItemsByAssortmentRelation instead")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByAssortmentRelation(string relationType, int relationAutoID)
Parameters
Returns
- IEnumerable<AssortmentItem>
- IEnumerable(Of AssortmentItem).
GetAssortmentItemsByLanguage(Language)
Gets all AssortmentItems in the specified Language.
[Obsolete("Use Services.Assortments.GetAssortmentItemsByLanguageId instead.")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByLanguage(Language language)
Parameters
language
Language- The language used to find assortment items.
Returns
- IEnumerable<AssortmentItem>
- An IEnumerable<T> containing all assortment items in the specified language.
GetAssortmentItemsByLanguageID(string)
Gets all AssortmentItems related to the specified language.
[Obsolete("Use Services.Assortments.GetAssortmentItemsByLanguageId instead.")]
public static IEnumerable<AssortmentItem> GetAssortmentItemsByLanguageID(string languageID)
Parameters
languageID
string- The language id used to find assortment items.
Returns
- IEnumerable<AssortmentItem>
- An IEnumerable<T> containing all assortment items related to the specified language.
GetAssortmentsByProduct(Product)
Gets all AssortmentItems representing the specified Product.
[Obsolete("Use Services.Assortments.GetAssortmentsByProduct instead.")]
public static AssortmentCollection GetAssortmentsByProduct(Product product)
Parameters
product
Product- Assortment items representing this product are found.
Returns
- AssortmentCollection
- AssortmentCollection.
GetAssortmentsByProductID(string, string)
Gets all AssortmentItems representing the product with the specified id and variant id.
[Obsolete("Use Services.Assortments.GetAssortmentsByProductId instead.")]
public static AssortmentCollection GetAssortmentsByProductID(string productID, string variantID)
Parameters
productID
string- The id of the product that is represented by the assortment items.
variantID
string- The variant id of the product that is represented by the assortment items.
Returns
- AssortmentCollection
- AssortmentCollection.
Save()
Saves this instance.
[Obsolete("Use Services.Assortments.SaveAssortmentItem instead.")]
public void Save()