WHY SELECT CLAUSE COMES AFTER FROM CLAUSE?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
C# 
C#
 1929  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    Why select clause comes after from clause?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!