Try our conversational search powered by Generative AI!

Class LineItemDiscount

Line Item type of discount.

Inheritance
System.Object
LineItemDiscount
Implements
System.ICloneable
System.Runtime.Serialization.ISerializable
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
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