Aşağıdaki listem var:
List list = sqlEntities.viewOffers
.Where(o => o.ProductId == productId)
.GroupBy(o => o.OfferId)
.ToList();
OfferId
is long
: I get the following error when I try to convert the list:
Error 27 Cannot implicitly convert type System.Collections.Generic.List> to System.Collections.Generic.List
:
Neyi yanlış yapıyorum?
Böyle bir işlevsellik istiyorum:
SELECT * FROM ViewOffers group by offerid