Microsoft
70-516 · Question #235
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application that uses LINQ to SQL. The application contains the following model. Each region contains a single…
The correct answer is B. Vendor.VendorlD = u.Customer.VendorlD. See the full explanation below for the reasoning.
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 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
- ADim dc As SalesDataContext = New SalesDataContext( "..." )
- BVendor.VendorlD = u.Customer.VendorlD
- CDim dc As SalesDataContext - New SalesDataContext ( "..." )
- DCustomer.VendorID = u.Vendor.VendorID
- EDim dc As SalesDataContext = New SalesDataContext( "..." )
- FVendor.Region = u.Customer.Region
- GDim dc As SalesDataContext - New SalesDataContext( "...")
- HCustomer.Region = u.Vendor.Region
How the community answered
(45 responses)- A7% (3)
- B80% (36)
- C2% (1)
- E9% (4)
- F2% (1)
Community Discussion
No community discussion yet for this question.
