Export (0) Print
Expand All

OrderContext Class

The starting point for all orders related operations in the order capture system. This class cannot be inherited.

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

public sealed class OrderContext

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.

In an ASP.NET application, a pre-created instance of the OrderContext class is available via the CommerceContext.Current.OrderContext property. Non-ASP.NET applications can create standalone OrderContext instances using the publicly exposed constructor. The OrderContext class is sealed and non-extensible.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft