Explain what is select clause and where clause in LINQ?

devquora
devquora

Posted On: Feb 22, 2018

 

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 collection. First, the user supplies an arbitrary function in the name of lambda expression which projects the data members. Then, this function is passed as a delegate.
  • Where clause: The Where clause is used to add some additional filters to the query. It allows the definition of a set of predicate rules that are evaluated for each object. The objects that do not match the rules are altered away. Then, the predicate is supplied as a delegate to the operator.

    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

    How is LINQ useful than Stored Procedures?

    LINQ is useful than stored procedures in the following ways:Deployment: In LINQ, deployment becomes easier as everyth..