Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IOrderItemDigitalGoodRepository Interface / LoadForUser Method / LoadForUser(Int32,String) Method
Id of the user to load the objects for
The sort expression to use for sorting the loaded objects.
Version
LoadForUser(Int32,String) Method
Loads a collection of OrderItemDigitalGood objects for the given user
Syntax
[DataObjectMethod(DataObjectMethodType.Select)]
IList<OrderItemDigitalGood> LoadForUser( 
   int userId,
   string sortExpression
)

Parameters

userId
Id of the user to load the objects for
sortExpression
The sort expression to use for sorting the loaded objects.

Return Value

A collection of OrderItemDigitalGood objects for the given user
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also