DbExpressions.DbSelectQueryExtensions.Take C# (CSharp) Method

Take() public static method

Limits the numbers of rows returned by the query.
public static Take ( this dbSelectQuery, DbExpression>.Func expressionSelector ) : DbQuery
dbSelectQuery this The target .
expressionSelector DbExpression>.Func A function used to create a that the number of rows to return.
return DbQuery
        public static DbQuery<DbSelectExpression> Take(this DbQuery<DbSelectExpression> dbSelectQuery, Func<DbExpressionFactory, DbExpression> expressionSelector)
        {
            dbSelectQuery.QueryExpression.TakeExpression = expressionSelector(DbExpressionFactory);
            return dbSelectQuery;
        }

Same methods

DbSelectQueryExtensions::Take ( this dbSelectQuery, int count ) : DbQuery