DbExpressionBuilder.Skip Method
Creates a new DbSkipExpression that sorts the given input set by the given sort specifications before skipping the specified number of elements.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | Skip(DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression) | Creates a new DbSkipExpression that sorts the given input set by the given sort specifications before skipping the specified number of elements. |
![]() ![]() | Skip(DbSortExpression, DbExpression) | Creates a new DbSkipExpression that skips the specified number of elements from the given sorted input set. |
DbExpressionBuilder.Skip Method (DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)
Creates a new DbSkipExpression that sorts the given input set by the given sort specifications before skipping the specified number of elements.
public static DbSkipExpression Skip( this DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder, DbExpression count )
Parameters
- input
-
Type:
System.Data.Entity.Core.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.Entity.Core.Common.CommandTrees.DbExpression
An expression the specifies how many elements of the ordered set to skip.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbSkipExpressionA 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. |
DbExpressionBuilder.Skip Method (DbSortExpression, DbExpression)
Creates a new DbSkipExpression that skips the specified number of elements from the given sorted input set.
Parameters
- argument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbSortExpression
A DbSortExpression that specifies the sorted input set.
- count
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies how many elements of the ordered set to skip.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbSkipExpressionA new DbSkipExpression that represents the skip operation.
Exception | Condition |
---|---|
ArgumentNullException | argument or count is null. |
ArgumentException | Count is not DbConstantExpression or DbParameterReferenceExpression or has a result type that is not equal or promotable to a 64-bit integer type. |