Microsoft
70-516 · Question #81
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…
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("...");
How the community answered
(36 responses)- A6% (2)
- B8% (3)
- C83% (30)
- D3% (1)
Community Discussion
No community discussion yet for this question.
