I want to limit the number of records returned by the ExecuteReader() but it doesn't take any parameters.
AppointmentTableInfo at = TablesInfo.GetAppointmentTableInfo();
TextTableInfo tt = TablesInfo.GetTextTableInfo();
Select s = S.NewSelect();
s.ReturnFields.Add(at.AppointmentId, tt.Text);
s.JoinRestriction.InnerJoin(at.AppointmentId.Equal(tt.TextId));
s.Restriction = tt.Text.Like(Mask.Mask);
s.OrderBy = new OrderBy(tt.Text);
foreach (ISoDataRecord row in s.ExecuteReader(0, 100)) //no such thing as paging
{
EntityElement e = new EntityElement();
e.Id = row.GetInt32(at.AppointmentId);
e.DisplayValue = getLineOne(row.GetString(tt.Text));
response.Entities.Add(e);
}
What can I do?.