DbExpressionBuilder.Skip Method (DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new DbSkipExpression that sorts the given input set by the given sort specifications before skipping the specified number of elements.

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbSkipExpression Skip(
	this DbExpressionBinding input,
	IEnumerable<DbSortClause> sortOrder,
	DbExpression count
)

Parameters

input
Type: System.Data.Common.CommandTrees.DbExpressionBinding

An expression binding that specifies the input set.

sortOrder
Type: System.Collections.Generic.IEnumerable<DbSortClause>

A list of sort specifications that determine how the elements of the input set should be sorted.

count
Type: System.Data.Common.CommandTrees.DbExpression

An expression the specifies how many elements of the ordered set to skip.

Return Value

Type: System.Data.Common.CommandTrees.DbSkipExpression

A new DbSkipExpression that represents the skip operation.

Exception Condition
ArgumentNullException

input, sortOrder or count is null, or sortOrder contains null.

ArgumentException

sortOrder is empty, or count is not DbConstantExpression or DbParameterReferenceExpression or has a result type that is not equal or promotable to a 64-bit integer type.

.NET Framework
Available since 4.5
Return to top
Show: