Orion.CAMLLib.CAMLGenerator cGen = new Orion.CAMLLib.CAMLGenerator();

// For the first field filter should be "String.Empty".
cGen.AddWhereField("Title", "Jigar", "Text", "Eq", String.Empty);
cGen.AddWhereField("Title", "Jinesh", "Text", "Eq", "Or");
cGen.AddWhereField("Password", "Pass123", "Text", "Eq", "And");
cGen.AddWhereField("ID", "1", "Text", "Eq", "And");
cGen.AddWhereField("Created", DateTime.Now.ToString("yyyy-MM-ddThh:mm:ssZ"), "DateTime", "Leq", "And");
string Query = cGen.CamlQuery;

Last edited Jun 9, 2010 at 2:30 PM by shethjigar, version 1

Comments

No comments yet.