What is the basic syntax of a LINQ query in Visual Basic as well as in C#?

devquora
devquora

Posted On: Feb 22, 2018

 

In Visual Basic, From clause is used to start the basic syntax of the LINQ query. However, it ends with Select or Group By clause. If you want to perform additional functions like filtering data or generating data in a specific order, you can use another clause like Where, Order By, Order By Descending, etc.

In C#, the basic syntax starts with the From clause and terminates with Select or  Group By clause. If you want to perform various functions like filtering data or generating data in a specific order, you can use another clause like Where, Order By, Order By Descending, etc.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    LINQ Interview Questions

    What do you understand by LINQ?

    Language Integrated Query is the collection of standard query operators which adds query facilities into .NET framework..

    LINQ Interview Questions

    What are the three main components of LINQ?

    The three main components of LINQ are:Standard Query Operators: These are the extension methods that form the LINQ p..

    LINQ Interview Questions

    Explain what is select clause and where clause in LINQ?

    Select clause: the select clause selects the interesting aspects of the element by performing a projection on the col..