What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 31922 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ADO.NET Interview Questions > In a LINQ query that starts with: from o ...

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?

Interview question and answer by: Rajkatie | Posted on: 8/7/2012 | Category: ADO.NET Interview questions | Views: 696 | | Points: 40

Select from following answers:
  1. by
  2. on
  3. let
  4. into

Show Correct Answer

Source: MeasureUp.com | | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Rajkatie

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 6:42:10 PM