70-573 · Question #108
You plan to create a custom Web Part that displays items from a custom SharePoint list named Project. You need to ensure that you can access the list by using strongly-typed objects in Microsoft…
The correct answer is B. Run spmetal.exe. MNEMONIC RULE: "strongly-typed = spmetal.exe" The LINQ to SharePoint provider is a new feature in SharePoint 2010 that allows you to use a strongly-typedentity model and the language integrated query (LINQ) query syntax to query list data. Essentially, LINQ toSharePoint hides…
Question
You plan to create a custom Web Part that displays items from a custom SharePoint list named Project. You need to ensure that you can access the list by using strongly-typed objects in Microsoft Visual Studio 2010. What should you do first?
Options
- AEdit the web.config file.
- BRun spmetal.exe.
- CRun ecmangen.exe.
- DEdit the Manifest.xml file.
How the community answered
(37 responses)- A5% (2)
- B84% (31)
- C3% (1)
- D8% (3)
Explanation
MNEMONIC RULE: "strongly-typed = spmetal.exe" The LINQ to SharePoint provider is a new feature in SharePoint 2010 that allows you to use a strongly-typedentity model and the language integrated query (LINQ) query syntax to query list data. Essentially, LINQ toSharePoint hides the complexity of developing CAML queries from developers, which can reduce developmenttime and make code more readable. The LINQ to SharePoint provider converts the LINQ expressions into CAML queries at run time. Although you can manually develop your entity classes, in most cases, you will want to use the SPMetalcommand line tool. Using LINQ to SharePoint
Topics
Community Discussion
No community discussion yet for this question.