Table of Contents

Class AssortmentRelation

Namespace
Dynamicweb.Ecommerce.Assortments
Assembly
Dynamicweb.Ecommerce.dll
Assortment relation base class
[Serializable]
public abstract class AssortmentRelation
Inheritance
AssortmentRelation
Inherited Members

Constructors

AssortmentRelation(AssortmentRelationType)

Initializes a new instance of the AssortmentRelation class.
protected AssortmentRelation(AssortmentRelationType relationType)

Parameters

relationType AssortmentRelationType
Type of the relation.

AssortmentRelation(AssortmentRelationType, Assortment)

Initializes a new instance of the AssortmentRelation class.
protected AssortmentRelation(AssortmentRelationType relationType, Assortment assortment)

Parameters

relationType AssortmentRelationType
Type of the relation.
assortment Assortment
The assortment.

AssortmentRelation(AssortmentRelationType, string)

Initializes a new instance of the AssortmentRelation class.
protected AssortmentRelation(AssortmentRelationType relationType, string assortmentID)

Parameters

relationType AssortmentRelationType
Type of the relation.
assortmentID string
The assortment ID.

Properties

AssortmentID

Gets or sets the assortment ID.
public string AssortmentID { get; set; }

Property Value

string
The assortment ID.

AutoID

Gets the automatic ID.
public int AutoID { get; protected set; }

Property Value

int
The automatic ID.

Type

Gets the type of the relation.
public AssortmentRelationType Type { get; }

Property Value

AssortmentRelationType
The relation type.

TypeName

Gets the name of the relation type.
public string TypeName { get; }

Property Value

string
The name of the relation type.

Methods

ClearCache()

Clears the cache.
[Obsolete("Use Services.Assortments.ClearCache instead.")]
public static void ClearCache()

Delete()

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

Delete(Assortment)

Deletes the assortment relations for the specified assortment.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(Assortment assortment)

Parameters

assortment Assortment
The assortment.

Delete(AssortmentCollection)

Deletes the assortment relations for the specified assortments.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(AssortmentCollection assortments)

Parameters

assortments AssortmentCollection
The assortments.

Delete(AssortmentRelationType)

Deletes the specified relation type.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(AssortmentRelationType relationType)

Parameters

relationType AssortmentRelationType
Type of the relation.

Delete(IEnumerable<string>)

Deletes the specified assortment ids.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(IEnumerable<string> assortmentIDs)

Parameters

assortmentIDs IEnumerable<string>
The assortment i ds.

Delete(string)

Deletes the assortment relations for the specified assortment ID.
[Obsolete("Use Services.Assortments.DeleteAssortmentRelations instead.")]
public static void Delete(string assortmentID)

Parameters

assortmentID string
The assortment ID.

Fill(IDataReader)

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

Parameters

dataReader IDataReader
The data reader.

GetAllAssortmentRelations()

Gets all assortment relations.
[Obsolete("Use Services.Assortments.GetAllAssortmentRelations instead.")]
public static IEnumerable<AssortmentRelation> GetAllAssortmentRelations()

Returns

IEnumerable<AssortmentRelation>
Collection of assortment relations

GetAssortmentRelationsByAssortment(Assortment)

Gets the assortment relations by the specified assortment.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByAssortmentId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByAssortment(Assortment assortment)

Parameters

assortment Assortment
The assortment.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified assortment.

GetAssortmentRelationsByAssortment(Assortment, AssortmentRelationType)

Gets the assortment relations by the specified assortment and relation type.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByAssortmentId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByAssortment(Assortment assortment, AssortmentRelationType relationType)

Parameters

assortment Assortment
The assortment.
relationType AssortmentRelationType
Type of the relation.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified assortment and relation type.

GetAssortmentRelationsByAssortmentID(string)

Gets the assortment relations by the specified assortment ID.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByAssortmentId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByAssortmentID(string assortmentID)

Parameters

assortmentID string
The assortment ID.

Returns

IEnumerable<AssortmentRelation>
Return an IEnumerable<T> by the specified assortment ID.

GetAssortmentRelationsByAssortmentID(string, AssortmentRelationType)

Gets the assortment relations by the specified assortment ID and relation type.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByAssortmentId instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByAssortmentID(string assortmentID, AssortmentRelationType relationType)

Parameters

assortmentID string
The assortment ID.
relationType AssortmentRelationType
Type of the relation.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified assortment ID and relation type.

GetAssortmentRelationsByRelationType(AssortmentRelationType)

Gets the assortment relations by specified relation type.
[Obsolete("Use Services.Assortments.GetAssortmentRelationsByRelationType instead.")]
public static IEnumerable<AssortmentRelation> GetAssortmentRelationsByRelationType(AssortmentRelationType relationType)

Parameters

relationType AssortmentRelationType
Type of the relation.

Returns

IEnumerable<AssortmentRelation>
Returns an IEnumerable<T> by the specified relation type.

Save()

Saves this instance.
[Obsolete("Use Services.Assortments.SaveAssortmentRelation instead.")]
public abstract void Save()
To top