Class LineItemDiscount
Line Item type of discount.
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: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class LineItemDiscount : Discount, IStorageObject, ICloneable, ISerializable
Constructors
LineItemDiscount()
Initializes a new instance of the LineItemDiscount class.
Declaration
public LineItemDiscount()
LineItemDiscount(SerializationInfo, StreamingContext)
Initializes a new instance of the LineItemDiscount class.
Declaration
protected LineItemDiscount(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
LineItemDiscountId
Gets or sets the line item discount id.
Declaration
public int LineItemDiscountId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The line item discount id. |
LineItemId
Gets or sets the line item id.
Declaration
public int LineItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The line item id. |
Parent
Gets the LineItem object discount belongs to.
Declaration
public LineItem Parent { get; }
Property Value
Type | Description |
---|---|
LineItem | The parent. |
Methods
AcceptChanges()
Accepts the changes.
Declaration
public override void AcceptChanges()
Overrides
CreateParameters(DataCommand)
Creates the parameters.
Declaration
protected override void CreateParameters(DataCommand command)
Parameters
Type | Name | Description |
---|---|---|
DataCommand | command | The command. |
Overrides
OnSaved(DataResult)
Called when [saved].
Declaration
protected override void OnSaved(DataResult result)
Parameters
Type | Name | Description |
---|---|---|
DataResult | result | The result. |
Overrides
SetParent(LineItem)
Sets the parent line item.
Declaration
public void SetParent(LineItem lineItem)
Parameters
Type | Name | Description |
---|---|---|
LineItem | lineItem | The line item. |
Implements
System.ICloneable
System.Runtime.Serialization.ISerializable