DbExpressionBuilder.Skip 方法

定义

在跳过指定数量的元素之前,创建一个新 DbSkipExpression 项,以便按给定的排序规范对给定的输入集进行排序。

重载

名称 说明
Skip(DbSortExpression, DbExpression)

创建一个从给定排序输入集中跳过指定数量的元素的新 DbSkipExpression 元素。

Skip(DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)

在跳过指定数量的元素之前,创建一个新 DbSkipExpression 项,以便按给定的排序规范对给定的输入集进行排序。

Skip(DbSortExpression, DbExpression)

创建一个从给定排序输入集中跳过指定数量的元素的新 DbSkipExpression 元素。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSkipExpression ^ Skip(System::Data::Common::CommandTrees::DbSortExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ count);
public static System.Data.Common.CommandTrees.DbSkipExpression Skip(this System.Data.Common.CommandTrees.DbSortExpression argument, System.Data.Common.CommandTrees.DbExpression count);
static member Skip : System.Data.Common.CommandTrees.DbSortExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbSkipExpression
<Extension()>
Public Function Skip (argument As DbSortExpression, count As DbExpression) As DbSkipExpression

参数

argument
DbSortExpression

一个 DbSortExpression 指定排序的输入集。

count
DbExpression

一个表达式,指定要跳过的有序集的元素数。

返回

表示跳过操作的新 DbSkipExpression。

例外

argumentcount 为 null。

count 不是 DbConstantExpressionDbParameterReferenceExpression 具有不等于或可提升为 64 位整数类型的结果类型。

适用于

Skip(DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)

在跳过指定数量的元素之前,创建一个新 DbSkipExpression 项,以便按给定的排序规范对给定的输入集进行排序。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSkipExpression ^ Skip(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbSortClause ^> ^ sortOrder, System::Data::Common::CommandTrees::DbExpression ^ count);
public static System.Data.Common.CommandTrees.DbSkipExpression Skip(this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbSortClause> sortOrder, System.Data.Common.CommandTrees.DbExpression count);
static member Skip : System.Data.Common.CommandTrees.DbExpressionBinding * seq<System.Data.Common.CommandTrees.DbSortClause> * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbSkipExpression
<Extension()>
Public Function Skip (input As DbExpressionBinding, sortOrder As IEnumerable(Of DbSortClause), count As DbExpression) As DbSkipExpression

参数

input
DbExpressionBinding

一个指定输入集的表达式绑定。

sortOrder
IEnumerable<DbSortClause>

排序规范列表,用于确定应如何对输入集的元素进行排序。

count
DbExpression

一个表达式,指定要跳过的有序集的元素数。

返回

表示跳过操作的新 DbSkipExpression。

例外

input sortOrdercount为 null,或sortOrder包含 null。

sortOrder为空或count不是DbConstantExpressionDbParameterReferenceExpression或具有不等于或可提升为 64 位整数类型的结果类型。

适用于