Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
In a LINQ query that starts with: from o in orderItems
The orderItems collection is a collection of OrderItem with properties called UnitPrice, Discount, and Quantity. You want the query to filter out OrderItem objects whose totalPrice (UnitPrice * Quantity * Discount) result is less than 100. You want to sort by totalPrice, and you want to include the total price in your select clause.
Which keyword can you use to create a totalPrice result within the LINQ query so you don't have to repeat the formula three times?
on 8/7/2012 | Category:
ADO.NET Interview questions
| Views: 1886 |
Select from following answers:
The let keyword declares a range variable in your LINQ query.
The on keyword is used with the join keyword to specify the join criteria.
The into keyword references the results of a join, group by, or select keyword.
Show Correct Answer
MeasureUp.com | |
< Previous :
Which query extension methods can you use to imple ...
Next > :
Given the following LINQ query: from c in cars jo ...
Comments or Responses
Login to post response
More Interview Questions by Rajkatie
Given the following LINQ query: from c in cars join r in repairs on c ...
You have executed the Where query extension method on your collection, ...
You want to page through an element sequence, displaying ten elements ...
To which of the following types can you add an extension method?
You are going to execute a Select command to SQL Server that returns s ...
Which payload formats can be specified if you are making an AJAX call ...
You are writing a WCF data service that will be included in a large pr ...
You want to configure WCF data service to allow only a single row look ...
Latest Interview Questions
Considering SELECT statement, in which order the query clauses are log ...
How do you copy the COM component to the server and register ?
It is not a good idea to add ASPNET user to the Administrators group, ...
How is the ASP.NET worker process impersonated ?
What will happen when you access the Global.asax file from a browser?
When you access the Web.config file from a browser, What will happen ?
What will happen to an application’s Web.config file when you make cha ...