Dijeli putem


OrderGroup Constructor

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Initializes a new instance of the OrderGroup class.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Protected Friend Sub New
'Usage

Dim instance As New OrderGroup()
protected internal OrderGroup()
protected public:
OrderGroup()
protected internal function OrderGroup()

Remarks

This is the default constructor and is normally called by hydration code, or when translating one type of subclass into another. The OrderGroup is initialized with the StatusCode set to Basket, the user identifier is empty, and the order group identifier is a new guid.

OrderGroup is the base class for the Basket, PurchaseOrder, and OrderTemplate order group types in the order capture system. An order can go through several stages -- from a wish list, to a basket, to a completed order. In all incarnations of an order, the OrderGroup is the base class that backs all of these objects. OrderGroup contains all that is common across these different stages of an order. Derived classes can add methods and properties that are specific to that stage. For example, a derived Basket class might add methods for checking inventory. A derived PurchaseOrder class might contain methods to return shipping status.

OrderGroup supports the IEnumerable interface to allow for easy enumeration of all the strongly typed and non-strongly typed properties exposed by the order group instance. You may further sub-type these classes to create custom order group sub-types. However, the OrderGroup class itself is non-extensible. OrderGroup exposes a base set of properties and methods common to all OrderGroup sub-types. An order group instance is uniquely identifiable by the OrderGroupId.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

OrderGroup Overload

Microsoft.CommerceServer.Runtime.Orders Namespace