OrderDetail Constructor (productName, quantity, unitPrice, discount, order)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 OrderDetail Constructor (productName, quantity, unitPrice, discount, order)
Patterns-In-Action! ApplicationBusinessObjectsOrderDetailOrderDetail(String, Int32, Single, Single, Order)
Overloaded constructor for Order Detail.
Declaration Syntax
C# Visual Basic
public OrderDetail(
	string productName,
	int quantity,
	float unitPrice,
	float discount,
	Order order
)
Public Sub New ( _
	productName As String, _
	quantity As Integer, _
	unitPrice As Single, _
	discount As Single, _
	order As Order _
)
Parameters
productName (String)
Product name of Order Detail.
quantity (Int32)
Quantity ordered.
unitPrice (Single)
Unit price of product at the time order is placed.
discount (Single)
Discount applied to unit price of product.
order (Order)
Order that Order Detail is part of.

Assembly: BusinessObjects (Module: BusinessObjects) Version: 1.0.0.0 (1.0.0.0)