Code
var results = from u in dc.Tran1Code
where u.UserId == userIdCode
selectCode
newCode
ID = u.UserId,Code
TranId = u.TransId,Code
i have a query like above in my controllerSQL
how to get values from above query like id and tranid into some other variables
VulpesRank #55 · 29.2K reputationPosted Aug 21, 2014, 3:11 AM EDT
Although I don't like them much, as an alternative to a named type, you can also use a Tuple. However, you'd then need to access the properties using Item1 and Item2 rather than their actual names.
Sasi ReddyRank #4,458 · 342 reputationPosted Aug 21, 2014, 3:26 AM EDT