Class MarketingStatisticRepository
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Repository for MarketingStatistics.
Inheritance
System.Object
MarketingStatisticRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing.Internal
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class MarketingStatisticRepository
Constructors
MarketingStatisticRepository(IContentLoader)
Initializes a new instance of the MarketingStatisticRepository class.
Declaration
public MarketingStatisticRepository(IContentLoader contentLoader)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.IContentLoader | contentLoader | The content loader. |
Methods
GetStatistic(ContentReference)
Gets statistics per subject that is an instance of EPiServer.Core.ContentReference.
Declaration
public virtual MarketingStatistic GetStatistic(ContentReference source)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | source | The source used to calculate statistic. |
Returns
Type | Description |
---|---|
MarketingStatistic | Calculated statistic MarketingStatistic. |
GetStatisticsFromDatabase(Guid, IEnumerable<Guid>)
Loads MarketingStatistics from database.
Declaration
protected virtual IEnumerable<MarketingStatistic> GetStatisticsFromDatabase(Guid contentGuid, IEnumerable<Guid> childrenGuids)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentGuid | The content guid. |
System.Collections.Generic.IEnumerable<System.Guid> | childrenGuids | The children guid of the content guid. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MarketingStatistic> | A list of MarketingStatistic. |