public static CamlOrderBy ThenBy(this CamlOrderBy orderBy, CamlFieldRef fieldRef) { if (orderBy == null) { orderBy = new CamlOrderBy(fieldRef); } var fields = new List <CamlFieldRef>(orderBy) { fieldRef }; return(new CamlOrderBy(fields)); }
public static CamlOrderBy ThenBy(this CamlOrderBy orderBy, string fieldName, bool?ascending = null) { return(orderBy.ThenBy(new CamlFieldRef { Name = fieldName, Ascending = @ascending })); }
public static CamlOrderBy ThenBy(this CamlOrderBy orderBy, Guid fieldId, bool?ascending = null) { return(orderBy.ThenBy(new CamlFieldRef { Id = fieldId, Ascending = @ascending })); }