cawl4SharePoint is a toolkit for people who build web sites using SharePoint. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of functions for commonly needed tasks, such as writing caml queries. cawl4SharePoint lets you creatively focus on your project by minimizing the amount of code needed for a given task.

 

[box type=”note”]You can find more information at www.cawl4SharePoint.com[/box]

[ilink url=”http://www.cawl4sharepoint.com” style=”download”]Download cawl4SharePoint[/ilink]   [ilink url=”http://www.cawl4sharepoint.com” style=”download”]Download Demo Project[/ilink]

Sample Code



// create an object cawl
cawl_QueryBuilder cawl = new cawl_QueryBuilder();

//Write some conditions
cawl.Where("Name","=","Murat");
cawl.or_Where("Name","=","Joe");
// condition is defined here

//use get function to build query.
//It is important to specify list name so that don't worry about field types.
cawl.Get("Users");

//Until here we build a caml query with condition for User list.

//now use QueryString function to get caml query string.
string finalquery= cawl.QueryString();

//then do whatever you want with query string
//..
//.