Question : linq query

Hi,

I have been playing with this liq quer for a while but cant figure how this query works

this is my query in sqland i want to use linq

i have 2 different queries and i want to use linq for both

first query

SELECT        mfMachines.machno, mfMembers.memno, mfMembers.hotel
FROM            mfMachines INNER JOIN
                         mfMembers ON mfMachines.memno = mfMembers.memno
WHERE        (mfMembers.del = '') AND (mfMembers.memno < 1000)
ORDER BY mfMembers.memno, mfMachines.machno

this my second query

SELECT        tmpWkMeter.machno, tmpWkMeter.memno, mfMembers.hotel
FROM            tmpWkMeter INNER JOIN
                         mfMembers ON tmpWkMeter.memno = mfMembers.memno
ORDER BY mfMembers.memno, tmpWkMeter.machno

thank you,

Answer : linq query

Here is the 2nd one
1:
2:
3:
4:
5:
6:
7:
8:
var q2 = (from wm in tmpWkMeter
          join mem in mfMembers
          on wm.machno equals mem.memno
          orderby mem.memno, wm.machno
          select new
          {
            wm.machno, wm.memno, mem.hotel
           }).ToList();
Random Solutions  
 
programming4us programming4us