nerdexam
Microsoft

70-516 · Question #81

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

The correct answer is C. SalesDataContext dc = new SalesDataContext("...");. See the full explanation below for the reasoning.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application that uses LINQ to SQL. The application contains the following model. Each region contains a single vendor. Customers order parts from the vendor that is located in their region. You need to ensure that each row in the Customer table references the appropriate row from the Vendor table. Which code segment should you use?

Exhibit

70-516 question #81 exhibit

Options

  • ASalesDataContext dc = new SalesDataContext("...");
  • BSalesDataContext dc = new SalesDataContext("...");
  • CSalesDataContext dc = new SalesDataContext("...");
  • DSalesDataContext dc = new SalesDataContext("...");

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework... | 70-516 Q#81 Answer | NerdExam