Posts Tagged “LINQ to SharePoint”

LINQ to SharePoint – Obscure Workarounds

October 1 2010 74 comments

Previously I wrote about querying with SPLinq and the scope being the current site collection when running code in SharePoint. I’ve also written about using Ajax panel in web parts editor part (this post is slightly edited to serve this one). I’m going to take these two posts as basis for this post where I will…

Read more »

LINQ to SharePoint – Scope is Site Collection

September 15 2010 7 comments

We made a discovery earlier this year when starting to develop our first customer projects on SharePoint 2010 that the DataContext does not extend over multiple site collections in SharePoint context, while it does so out of the mentioned context. This means you can’t develop customizations on SharePoint 2010 using LINQ to SharePoint over

Read more »

Comparing DateTimes in a LINQ to SharePoint Query

September 10 2010 5 comments

Last time I blogged about LINQ to SharePoint (available for SharePoint 2010), and especially about the fact that the underlying CAML generation matters, even though it is hidden by the developer. Here is another issue, or a bug, that I came across.

Consider the following simple situation: you want to fetch and display those calendar events that start…

Read more »

LINQ to SharePoint Performance Pitfalls

September 8 2010 9 comments

SharePoint 2010 introduced LINQ to SharePoint which enables the programmer an easy access to SharePoint lists and content types using LINQ.

While LINQ to SharePoint greatly simplifies the code and frees the programmer from writing CAML queries, it can easily result in poor code in terms of performance. The main problem is, IMHO, that the full power of…

Read more »