DbExpressionBuilder.Skip Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Skip(DbSortExpression, DbExpression) |
Creates a new DbSkipExpression that skips the specified number of elements from the given sorted input set. |
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.
public static System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression Skip (this System.Data.Entity.Core.Common.CommandTrees.DbSortExpression argument, System.Data.Entity.Core.Common.CommandTrees.DbExpression count);
static member Skip : System.Data.Entity.Core.Common.CommandTrees.DbSortExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression
<Extension()>
Public Function Skip (argument As DbSortExpression, count As DbExpression) As DbSkipExpression
Parameters
- argument
- DbSortExpression
A DbSortExpression that specifies the sorted input set.
- count
- DbExpression
An expression the specifies how many elements of the ordered set to skip.
Returns
A new DbSkipExpression that represents the skip operation.
Exceptions
argument or count is null.
count is not DbConstantExpression or DbParameterReferenceExpression or has a result type that is not equal or promotable to a 64-bit integer type.
Applies to
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.
public static System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression Skip (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbSortClause> sortOrder, System.Data.Entity.Core.Common.CommandTrees.DbExpression count);
static member Skip : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * seq<System.Data.Entity.Core.Common.CommandTrees.DbSortClause> * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbSkipExpression
<Extension()>
Public Function Skip (input As DbExpressionBinding, sortOrder As IEnumerable(Of DbSortClause), count As DbExpression) As DbSkipExpression
Parameters
- input
- DbExpressionBinding
An expression binding that specifies the input set.
- sortOrder
- IEnumerable<DbSortClause>
A list of sort specifications that determine how the elements of the input set should be sorted.
- count
- DbExpression
An expression the specifies how many elements of the ordered set to skip.
Returns
A new DbSkipExpression that represents the skip operation.
Exceptions
input, sortOrder or count is null, or sortOrder contains null.
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.
Applies to
Entity Framework