How do we write a LINQ query to search with criteria?

 Posted by ArticlesMaint on 9/29/2009 | Category: LINQ Interview questions | Views: 5264

We need to put the where clause before the ‘select’ keyword.

return from clsCustomer Obj in objCustomer where Obj.customerCode == “001” select Obj;

Below figure shows the where clause in action.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response