2
Reply

get values from linq

Sasi Reddy

Sasi Reddy

Aug 21 2014 6:46 AM
791

var results = from u in dc.Tran1
  where u.UserId == userId
 select
 new
{
 ID = u.UserId,
TranId = u.TransId,
};
i have  a query like above in my controller 
how to get values from above query like id and tranid into some other variables


Answers (2)