public static string Where(ICAMLExpression expr, SPList list) { XmlDocument doc = new XmlDocument(); doc.LoadXml(@"<Where/>"); FieldInternalNameProvider p = new FieldInternalNameProvider(list); if (expr != null) { expr.ToCAML(p, doc.DocumentElement); } return doc.InnerXml; }
public static string Where(ICAMLExpression expr) { XmlDocument doc = new XmlDocument(); doc.LoadXml(@"<Where/>"); if (expr != null) { expr.ToCAML(doc.DocumentElement); } return doc.InnerXml; }