In the **How Do I **section (newest build V2)
In the **
How do I get the MAX(Order.ShippingDate - Order.OrderDate) value from a customer's orders ?**
this example code fails as the third parameter in the GetScalar() expects an Aggregate function:
OrderCollection orders = new OrderCollection();
int maxValue = (int)orders.GetScalar(OrderFieldIndex.OrderId, (OrderFields.ShippedDate - OrderFields.OrderDate),
(OrderFields.CustomerId == _customerId));
If it's changed to this, it compiles.
OrderCollection orders = new OrderCollection();
int maxValue = (int)orders.GetScalar(OrderFieldIndex.OrderId, (OrderFields.ShippedDate - OrderFields.OrderDate),
AggregateFunction.Max);
Am I correct in that assumption or am I doing something wrong?