2
Answers

get values from linq

Sasi Reddy

Sasi Reddy

10y
815
1

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)