OrderContext Class (BCL)

Represents a connection to a transactions database. The construction of an OrderGroup object requires an OrderContext object. A default OrderContext object is created by the Commerce Server .NET Application Framework if the CommerceOrderModule is configured in the web.config file and if a transactions resource exists for the site.

System.Object
**** Microsoft.CommerceServer.Runtime.Orders.OrderContext

Public Instance Constructor

Constructor Description
OrderContext Constructor(String, DebugContext) Creates a new instance of the OrderContext class with the specified connection string and DebugContext object.

 

Public Instance Methods

Method Description
CreateOrderTemplate(Guid) Creates a new order template instance.
GetBasket(Guid) Retrieves an existing basket instance, or creates a new one if it does not exist.
GetOrderTemplate(Guid, Guid) Retrieves an existing order template instance.
GetPurchaseOrder(Guid, Guid) Retrieves an existing purchase order instance.
GetShippingMethods(String, String, String[]) Returns the list of configured shipping methods as specified by the input parameters.

 

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Example Code for the Microsoft.CommerceServer.Runtime.Orders Namespace

Copyright © 2005 Microsoft Corporation.
All rights reserved.