LINQ in MOSS 2010

In Moss 2010 we can use LINQ syntax for getting items from list instead of using traditional method using spquery.
for that we have to follow some steps:
step 1:First we have to run some command for generate some entity classes which Visual Studio 2010 can use to get IntelliSense, and allows for LINQ-based queries to be performed on our sharepoint lists.

There is one tool in 14\bin folder folder named SPMetal.exe
open CMD run this command

SPMetal.exe /web:http://mycustomsite /code:C:\CustomEntityFile.cs




TO be continued.........

Comments

Popular posts from this blog

How to deploy sandbox solution from one environment to other

Difference between sandbox & farm solution