I got two tables OrderHead and Labeldata, both these two tables don't have any relationship. I want to extract data from these two table, I am using following LINQ:
var ODetail = (
from o in oContext.OrderHeads
join l in oContext.LIT04LABELDATA on o.CUSTORD equals l.ORDERNUMBER
where l.ORDERNUMBER == oNumber
select new { LIT04LABELDATA = l, OrderHead = o }
).ToList();
I want to use the data from both these tables, but I don't know how to extract data from the variable oDetail, any suggestions?