Microsoft
70-516 · Question #231
You use Microsoft .NET Framework 4 to develop an application that uses LINQ to SQL. You create a data model named AdvWorksDataContext, and you add the Product table to the data model. The Product…
The correct answer is A. Dim colorList() As String = New String() {"Black", "Red"}. See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to develop an application that uses LINQ to SQL. You create a data model named AdvWorksDataContext, and you add the Product table to the data model. The Product table contains a decimal column named ListPrice and a string column named Color. You need to update the ListPrice column where the product color is Black or Red. Which code segment should you use?
Options
- ADim colorList() As String = New String() {"Black", "Red"}
- BDim dc As AdvWorksDataContext =
- CDim dc As AdvWorksDataContext =
- DDim dc As AdvWorksDataContext =
How the community answered
(21 responses)- A86% (18)
- B5% (1)
- D10% (2)
Community Discussion
No community discussion yet for this question.