Sasi Reddy

Sasi Reddy

  • NA
  • 346
  • 225.9k

get values from linq

Aug 21 2014 6:46 AM

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)