var teamDetails = from m in db.con_teamdetails where m.tea_teamname == User select m.tea_id;var teamDetails = from m in db.con_teamdetails where m.tea_teamname == User select m.tea_id;
how to get value from teamdetails which means tea_id
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shuvojit HalderRank #2,827 · 503 reputationPosted May 18, 2015, 3:14 AM EDT
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 18, 2015, 3:49 AM EDT
foreach(var v in teamDetails )
{
//here you can read by v.tea_id
int a=v.tea_id ;
}
i think it may help youRamesh MaruthiRank #937 · 2.2K reputationPosted May 18, 2015, 5:23 AM EDT
teamDetails.ToList().ForEach(i => i.y.tea_id); Or else as @Nanhe Siddiquecode you can do foreach loop for var items and get the value.ApurvaRank #2,996 · 481 reputationPosted Jun 8, 2015, 8:56 AM EDT
Govinda Rajulu YemineniRank #1,518 · 1K reputationPosted Jul 19, 2015, 10:32 PM EDT