Language Integrated Query (LINQ) Question:
Download Questions PDF

Why Select clause comes after from clause in LINQ?

LINQ Interview Question
LINQ Interview Question

Answer:

The reason is, LINQ is used with C# or other programming languages, which requires all the variables to be declared first. From clause of LINQ query just defines the range or conditions to select records. So that’s why from clause must appear before Select in LINQ.

Download LINQ Interview Questions And Answers PDF

Previous QuestionNext Question
What is the LINQ file extension that interacts with Code Behind objects.Difference between LINQ and Stored Procedures?