Method Slice
Slice<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>, int)
Adds a slice to be included in the results.
public static FieldsBuilder<TDocument> Slice<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression, int size)
Parameters
memberExpressionExpression<Func<TDocument, IEnumerable<TValue>>>The member expression.
sizeintThe size of the slice (negative sizes are taken from the end).
Returns
- FieldsBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TValueThe type of the enumerable member values.
Slice<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>>, int, int)
Adds a slice to be included in the results.
public static FieldsBuilder<TDocument> Slice<TValue>(Expression<Func<TDocument, IEnumerable<TValue>>> memberExpression, int skip, int limit)
Parameters
memberExpressionExpression<Func<TDocument, IEnumerable<TValue>>>The member expression.
skipintThe number of values to skip.
limitintThe number of values to extract.
Returns
- FieldsBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TValueThe type of the enumerable member values.