Your application includes a class named Supplier. You need to query a collection of Supplier entities named suppliers for all instances that have a Supplier.City property value of "Redmond".

Which C# query do you use?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 1610 | Points: 40
Select from following answers:
  1. from s in suppliers where s.City == "Redmond" select s;
  2. from s in suppliers select new { City = "Redmond" };
  3. from s in suppliers orderby s.City, "Redmond" select s;
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response