PrepAway - Latest Free Exam Questions & Answers

What should you do first?

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?

PrepAway - Latest Free Exam Questions & Answers

A.
Run spmetal.exe.

B.
Run ecmangen.exe.

C.
Edit the web.config file.

D.
Edit the Manifest.xml file.

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-typed entity model and the language integrated query (LINQ) query syntax to query list data. Essentially, LINQ to SharePoint hides the complexity of developing CAML queries from developers, which can reduce development time 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 SPMetal command line tool.

Using LINQ to SharePoint
http://msdn.microsoft.com/en-us/library/ff798478.aspx


Leave a Reply