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
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.
