Pages

Search This Blog

Monday, April 18, 2011

LINQ to SharePoint provider - Part 1

LINQ to SharePoint provider enables us to use Language Integrated Query (LINQ) queries in our Microsoft SharePoint Foundation solutions. Rocking features of this provider are, it enables changing data using optimistic concurrency, object change tracking and resolution of conflicts is also supported by LINQ to SharePoint. Here I am introducing a very simple usage of LINQ in sharepoint 2010. To use the attached code first of all create a list named "Customers" having columns "Name", "CustomerId", "City".

Download Code : http://www.min.us/mb2BFA1cb6oztV

1 comment:

  1. Hi Prabhat Saraswat i have try doing follow your post , i also check your project which you attached , but it's still not working.

    // you can't loop this code
    foreach (var delCust in delhiCustomers)
    {

    }

    thanks for your post

    ReplyDelete