Table of Contents

Class PromotionInfo

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Data container class for PromotionInfo.

[InfoCache(InfoCacheBy.ID|InfoCacheBy.Name|InfoCacheBy.Guid)]
public class PromotionInfo : AbstractInfo<PromotionInfo, IInfoProvider<PromotionInfo>>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithName, IInfoWithGuid
Inheritance
object
PromotionInfo
Implements
Inherited Members
Extension Methods

Constructors

PromotionInfo()

Creates an empty instance of the PromotionInfo class.

public PromotionInfo()

PromotionInfo(DataRow)

Creates a new instance of the PromotionInfo class from the given System.Data.DataRow.

public PromotionInfo(DataRow dr)

Parameters

dr DataRow

DataRow with the object data.

Fields

OBJECT_TYPE

Object type.

public const string OBJECT_TYPE = "commerce.promotion"

Field Value

string

TYPEINFO

Type information.

public static readonly ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

PromotionActiveFromWhen

Promotion active from when.

[DatabaseField]
public virtual DateTime? PromotionActiveFromWhen { get; set; }

Property Value

DateTime?

PromotionActiveToWhen

Promotion active to when.

[DatabaseField]
public virtual DateTime? PromotionActiveToWhen { get; set; }

Property Value

DateTime?

PromotionCreatedByUserID

Promotion created by user ID.

[DatabaseField]
public virtual int PromotionCreatedByUserID { get; set; }

Property Value

int

PromotionCreatedWhen

Promotion created when.

[DatabaseField]
public virtual DateTime PromotionCreatedWhen { get; set; }

Property Value

DateTime

PromotionCustomerEligibility

Gets or sets the customer eligibility requirement for the promotion.

[DatabaseField(ValueType = typeof(string))]
public virtual PromotionCustomerEligibility PromotionCustomerEligibility { get; set; }

Property Value

PromotionCustomerEligibility

The customer eligibility requirement that determines which customers can use this promotion. Can be All for all customers or Registered for registered members only.

PromotionDescription

Promotion description.

[DatabaseField]
public virtual string PromotionDescription { get; set; }

Property Value

string

PromotionDisplayName

Promotion display name.

[DatabaseField]
public virtual string PromotionDisplayName { get; set; }

Property Value

string

PromotionGUID

Promotion GUID.

[DatabaseField]
public virtual Guid PromotionGUID { get; set; }

Property Value

Guid

PromotionID

Promotion ID.

[DatabaseField]
public virtual int PromotionID { get; set; }

Property Value

int

PromotionModifiedByUserID

Promotion modified by user ID.

[DatabaseField]
public virtual int PromotionModifiedByUserID { get; set; }

Property Value

int

PromotionModifiedWhen

Promotion modified when.

[DatabaseField]
public virtual DateTime PromotionModifiedWhen { get; set; }

Property Value

DateTime

PromotionName

Promotion name.

[DatabaseField]
public virtual string PromotionName { get; set; }

Property Value

string

PromotionRuleIdentifier

Promotion rule identifier.

[DatabaseField]
public virtual string PromotionRuleIdentifier { get; set; }

Property Value

string

PromotionType

Promotion type.

[DatabaseField(ValueType = typeof(string))]
public virtual PromotionType PromotionType { get; set; }

Property Value

PromotionType

Methods

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

LoadDefaultData()

Loads the default object data

protected override void LoadDefaultData()

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()