Camlex.NET simplifies creating of CAML queries

I like this tool and would like to share with you, this tool help you create the CAML queries via using this Camlex.NET DLL.

You can download this DLL and use in your project.

As per their documentation to get the following CAML query  
<Where>
  <Eq>
    <FieldRef Name="Status" />
    <Value Type="Text">Completed</Value>
  </Eq>
</Where>

you just need to write the following code

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

You can also generate the code just put the CAML http://camlex-online.org/ URL and generate the code.



Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

Types of Features in SharePoint 2013

STS CryptographicException Error : Key set does not exist