Linq Having Sum(Quantity) = x?
Posted
by molgan
on Stack Overflow
See other posts from Stack Overflow
or by molgan
Published on 2010-03-17T12:55:28Z
Indexed on
2010/03/17
13:11 UTC
Read the original article
Hit count: 186
LINQ
|entity-framework
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
© Stack Overflow or respective owner