var j=from o in Orders
join OT in OrderDetails on o.OrderId equals OT.OrderId
group OT.ProductId by o.OrderId into g
select new{OrderId=g.Key,ProductId=g};
The class Orders Contains TotalPrice. I want to retrieve it, but i get error,
I tried like this
var j=from o in Orders
join OT in OrderDetails on o.OrderId equals OT.OrderId
group OT.ProductId by o.OrderId into g
select new{OrderId=g.Key,ProductId=g,TotalPrice=o.TotalPrice};
It shows an error the term 'o' does not exist, pls help