Class MostOrderProductDataSource
MostOrderProductDataSource
Inheritance
System.Object
MostOrderProductDataSource
Namespace: EPiServer.Business.Commerce.WebControls
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
[CLSCompliant(false)]
public sealed class MostOrderProductDataSource : GenericDataSource<Entry, List<Entry>, string>
Constructors
MostOrderProductDataSource()
Initializes a new instance of the MostOrderProductDataSource class.
Declaration
public MostOrderProductDataSource()
Properties
CatalogNodeId
Get best seller product from a CatalogNode with Id
Declaration
public int CatalogNodeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
EnableCache
Gets or sets a value indicating whether [enable cache].
Declaration
public bool EnableCache { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
FromDate
Search best seller products fromDate until now
Declaration
public DateTime FromDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
MaxProductsCount
Max number of products
Declaration
public int MaxProductsCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CreateItem(List<Entry>)
Create a new Entry
Declaration
protected override Entry CreateItem(List<Entry> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<Entry> | items |
Returns
Type | Description |
---|---|
Entry | An Entry |
DeleteItem(Entry)
Delete an Entry (do nothing now)
Declaration
protected override void DeleteItem(Entry item)
Parameters
Type | Name | Description |
---|---|---|
Entry | item | Entry |
ListItems()
Get list of entries
Declaration
protected override List<Entry> ListItems()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Entry> |
LoadItem(String)
Load an Entry
Declaration
protected override Entry LoadItem(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Entry Code |
Returns
Type | Description |
---|---|
Entry | Entry |
SaveItem(Entry)
Save an Entry (do nothing now)
Declaration
protected override void SaveItem(Entry item)
Parameters
Type | Name | Description |
---|---|---|
Entry | item | Entry |