The current v1.1.0.0 does support RowLimit tag? If not, it's possible to extend Query class in any way to render tag? Please see: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-team-services/dd588460(v=office.11)
I did not find a way to "naturally" extend the Query class, which seems to implement Builder pattern and It's ok. So in the .NET solution I'm working on I've created my own CamlQueryBuilder only to extend behavior of Query class. In my CamlQueryBuilder I've a method that does the following as a workaround:
protected override CamlQuery InternalBuild()
{
this.BuiltInstance.ViewXml = this.GetViewXml();
return base.InternalBuild();
}
private string GetViewXml()
{
return string
.Concat(
"<View>",
Query
.Build(this.WhereBuilder.Build())
.OrderBy(this.OrderByFieldRefs)
.GetCaml()
.RemoveNewLine()
.RemoveWhitespaceBetweenXmlTags(),
this.GetRowLimitCaml(),
"</View>");
}
private string GetRowLimitCaml()
{
return this.RowLimit > 0 ? string.Format("<RowLimit>{0}</RowLimit>", this.RowLimit) : string.Empty;
}
The current v1.1.0.0 does support RowLimit tag? If not, it's possible to extend Query class in any way to render tag? Please see: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-team-services/dd588460(v=office.11)
I did not find a way to "naturally" extend the Query class, which seems to implement Builder pattern and It's ok. So in the .NET solution I'm working on I've created my own CamlQueryBuilder only to extend behavior of Query class. In my CamlQueryBuilder I've a method that does the following as a workaround: