Ask a questionAsk a question
 

AnswerCommerceOperationResponse GroupBy

  • Wednesday, October 28, 2009 8:25 PMa_JohnnyC_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Does anyone have information on the GroupBy function found on CommerceResponse.OperationResponses.GroupBy. Is this a SQL type grouping or something else. If not a sql type grouping does anyone have any information on how to group a commercequery result.

Answers

  • Wednesday, October 28, 2009 9:39 PMLewisBenge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Johnny,

    The OperationResponses is of type List<CommerceOperationResponse>, which as a list object is derived from the System.Collection so it inherits the basic Linq operations for parsing collections/arrays of data. One of the operators is GroupBy which groups items in the collection by a given paramter and is explains in more detail here: http://www.hookedonlinq.com/GroupByOperator.ashx 

    Hope this helps..

    Thanks,
    Lewis


    Follow Me on Twitter: @LewisBenge Or check out my blog: http://www.geekswithblogs.com/pointtoshare/
    • Proposed As Answer byLewisBenge Wednesday, October 28, 2009 9:40 PM
    • Marked As Answer bya_JohnnyC_ Thursday, October 29, 2009 1:15 AM
    •  

All Replies

  • Wednesday, October 28, 2009 9:39 PMLewisBenge Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Johnny,

    The OperationResponses is of type List<CommerceOperationResponse>, which as a list object is derived from the System.Collection so it inherits the basic Linq operations for parsing collections/arrays of data. One of the operators is GroupBy which groups items in the collection by a given paramter and is explains in more detail here: http://www.hookedonlinq.com/GroupByOperator.ashx 

    Hope this helps..

    Thanks,
    Lewis


    Follow Me on Twitter: @LewisBenge Or check out my blog: http://www.geekswithblogs.com/pointtoshare/
    • Proposed As Answer byLewisBenge Wednesday, October 28, 2009 9:40 PM
    • Marked As Answer bya_JohnnyC_ Thursday, October 29, 2009 1:15 AM
    •  
  • Thursday, October 29, 2009 1:15 AMa_JohnnyC_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks.