Camlex.NET for Sharepoint

Jan 24, 2010 at 9:41 AM
Edited Jan 24, 2010 at 9:46 AM

Hello,

first of all I would like to thanks all contributors of spg project - it is really useful guide for our every day Sharepoint development. Also I want to announce the release of Camlex.NET project which allows to create CAML queries using lambda expressions and fluent interfaces: http://camlex.codeplex.com. E.g. expression like:

string caml =
    Camlex
.Query() .Where(x => (string)x["Status"] == "Completed").ToString();

will be translated to the following CAML:

 <Where>
  <Eq>
    <FieldRef Name="Status" />
    <Value Type="Text">Completed</Value>
  </Eq>
</Where>

I.e. Camlex.NET helps developers to avoid working with CAML and xml directly - and allows them to concentrate over business tasks. There are also another examples of using Camlex on http://camlex.codeplex.com. Also Documentation page contains more detailed description of Camlex features (e.g. description of one useful feature - support of non-constant expressions).

Authors hope that Camlex.NET will become useful and that it can bring some value for spg project as well. If you will have any questions you can ask them on http://camlex.codeplex.com/Thread/List.aspx. Or directly ask authtors of project Alexey Sadomov (http://sadomovalex.blogspot.com) and Vladimir Timashkov (http://vtimashkov.wordpress.com)