Microsoft Developer Network > Forums Home > Commerce Server Forums > Commerce Server 2007 > Need Info on OrderContext, CommerceContext?
Ask a questionAsk a question
 

Proposed AnswerNeed Info on OrderContext, CommerceContext?

  • Wednesday, November 04, 2009 11:24 AMsakthimind Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Can anyone explain me the below code

    OrderContext ocx = CommerceContext.Current.OrderSystem;

    1. What is OrderContext?
    2. What is Commercontext?
    3. Why we are trying to integrate this 2 values?

    I tried to understand from msdn or other resources. But i am not able to understand. Can anyone help me?

    Thanks
    Sakthivel.S

All Replies

  • Wednesday, November 04, 2009 12:35 PMRavi Kanth KoppalaMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Commerce Context (static) is the gate way to Commerce Server and It has four subsystems - Catalog (& Inventory), Marketing, Profile and Order. OrderContext is the gateway to commerce server order subsystem and this object can be created from CommerceContext.

    I would recommend you to go through runtime API to get more insight into commerce context.
    http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.runtime.aspx


    Hope this helps.

    Regards,
    -Ravi Kanth Koppala
    http://techblog.ravikanth.net (If this post answers your question - Either Mark this post as the answer or vote as being useful.)