Why SELECT clause comes after FROM clause in LINQ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Suraj KumarRank #353 · 7.1K reputationPosted Jan 26, 2018, 7:07 PM EST
Hiten PandyaRank #1,237 · 1.4K reputationPosted Jan 30, 2018, 2:15 AM EST
So, from below example
var query = "from c in dbo.Customer
where c.Id=1
select c";
dbo.Customer is our dataSource and c is our one kind of local variable
or alias and then we apply the filter in the form of where clause and
in last we are fetching the result.