OrderContext Class
The starting point for all orders related operations in the order capture system. This class cannot be inherited.
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
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.