QueryableExtensions.Take<TSource> Method (IQueryable<TSource>, Expression<Func<Int32>>)
Returns a specified number of contiguous elements from the start of a sequence.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] public static IQueryable<TSource> Take<TSource>( this IQueryable<TSource> source, Expression<Func<int>> countAccessor )
Parameters
- source
-
Type:
System.Linq.IQueryable<TSource>
The sequence to return elements from.
- countAccessor
-
Type:
System.Linq.Expressions.Expression<Func<Int32>>
An expression that evaluates to the number of elements to return.
Return Value
Type: System.Linq.IQueryable<TSource>A sequence that contains the specified number of elements from the start of the input sequence.
Type Parameters
- TSource
The type of the elements of source.