this is mysql Query But I want to change the query in LINQ to Entities.
"
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
Abhishek JainRank #1,062 · 1.8K reputationPosted Aug 29, 2013, 5:32 AM EDT
Suppose in my example i am considering tbl1 as Entity1 and tb2 as Entity2
List
List
List
Pleas let Entity2 have a property Name
var aaa =
var type =
filteredList = entity2List.Where(elw => elw.AAA == aaa && elw.Type = type).Select(els => new Entity2() { Id = els.Id, SubmitFlag = els.SubmitFlag, Answer = els.Answer, Name = entity1List.Where(elfw => elfw.QuestionId = els.SecretQuestionId).Select(elf => on.Name).First() }).ToList();