nerdexam
Microsoft

70-516 · Question #169

70-516 Question #169: Real Exam Question with Answer & Explanation

Sign in or unlock 70-516 to reveal the answer and full explanation for question #169. The question stem and answer options stay visible for context.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application that uses the Entity Framework. The application defines the following Entity Data Model. Within the .edmx file, the following function is defined: <Function Name="Round" ReturnType="Decimal"> <Parameter Name="val" Type="Decimal" /> <DefiningExpression> CAST(val as Edm.Int32) </DefiningExpression> </Function> The application includes the following LINQ query. var query = from detail in context.SalesOrderDetails select detail.LineTotal.Round(); You need to ensure that the Round function executes on the database server when the query is executed. Which code segment should you use?

Options

  • Apublic static class DecimalHelper
  • Bpublic static class DecimalHelper
  • Cpublic static class DecimalHelper
  • Dpublic static class DecimalHelper

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-516 Practice