nerdexam
Microsoft

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…

Developing for Data Access

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)
  • A
    5% (2)
  • B
    84% (31)
  • C
    3% (1)
  • D
    8% (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

#SPMetal#strongly-typed objects#LINQ to SharePoint#code generation

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice