I am trying to get back all of the objects which I have saved in the database but not all of them come back:
var everything = session.Query<MyObject>()
.Where(x => !x.IsDeleted &&
x.WorkflowStatus == WorkflowStatus.Published);
I have 206 objects in total, a good 80% of them fit the criteria above but only 127 are returned.
Can anyone see why?
By default, queries return up to 128 records.
Use an explicit Take(n)
to get more records.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With