Class OrderFormDiscount

Order form discount class.

Inheritance
System.Object
OrderFormDiscount
Implements
System.ICloneable
System.Runtime.Serialization.ISerializable
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class OrderFormDiscount : Discount, IStorageObject, ICloneable, ISerializable

Constructors

OrderFormDiscount()

Initializes a new instance of the OrderFormDiscount class.

Declaration
public OrderFormDiscount()

OrderFormDiscount(SerializationInfo, StreamingContext)

Initializes a new instance of the OrderFormDiscount class.

Declaration
protected OrderFormDiscount(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The info.

System.Runtime.Serialization.StreamingContext context

The context.

Properties

OrderFormDiscountId

Gets or sets the order form discount id.

Declaration
public int OrderFormDiscountId { get; set; }
Property Value
Type Description
System.Int32

The order form discount id.

OrderFormId

Gets or sets the order form id.

Declaration
public int OrderFormId { get; set; }
Property Value
Type Description
System.Int32

The order form id.

Parent

Gets the parent OrderForm.

Declaration
public OrderForm Parent { get; }
Property Value
Type Description
OrderForm

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(OrderForm)

Sets the parent OrderForm.

Declaration
public void SetParent(OrderForm orderForm)
Parameters
Type Name Description
OrderForm orderForm

The order form.

Implements

System.ICloneable
System.Runtime.Serialization.ISerializable