Linq Having Sum(Quantity) = x?
- by molgan
Hello
I have a function that returns IQueryable, and I would like to add "HAVING SUM(Quantity) = X" to it, but I get error if I try like this:
_rep.GetBookings().ByBookingObjectID(bookingObjectID).Sum(x => x.Quantity == somevariablehere);
I cant seem to find functions for it to find by sum
/M