Method Sample
Sample<TSource>(IQueryable<TSource>, long)
Returns a sample of the elements in the source
.
public static IQueryable<TSource> Sample<TSource>(this IQueryable<TSource> source, long count)
Parameters
source
IQueryable<TSource>An IQueryable<T> to return a sample of.
count
longThe number of elements in the sample.
Returns
- IQueryable<TSource>
A sample of the elements in the
source
.
Type Parameters
TSource
The type of the elements of
source
.