Posts Tagged “CAML”

Comparing DateTimes in a LINQ to SharePoint Query

September 10 2010 38 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 19 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 »

CAML and Querying Boolean Fields

February 22 2010 86 comments

Today I had some trouble trying to filter out items by a field of type Boolean. I have a custom content type definition which has a FieldRef to a Field:

  <Field
   Type="Boolean"
   DisplayName="IsHeadlineDisplayName"
   Description="IsHeadlineDescription"
   Required="TRUE"
 

Read more »