version 1.0.2005.1 final (self-servicing)
VS2005 asp.net 2.0
hiya,
I have to grab a result from a SINGLE database table.
tblOrderItem
orderItemId PK
orderId
quantity
I simply want to:
1) pass the orderId as an argument.
2) return an integer value that represents the quantity of items for a particular order.
ie, I only need to know how many items are in an order, I do not need to group them.
This value will either be zero / greater than zero.
I know that I could use a predicate on an entityCollection, but there must be a more lightweight approach?
What should I use, maybe the “compute” method of a typedList??
I’m looking for the best performing approach..
Many thanks,
yogi