DbExpressionBuilder.Skip 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在跳过指定数量的元素之前,创建一个新 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。
例外
argument 或 count 为 null。
count 不是 DbConstantExpression 或 DbParameterReferenceExpression 具有不等于或可提升为 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
sortOrder或count为 null,或sortOrder包含 null。
sortOrder为空或count不是DbConstantExpressionDbParameterReferenceExpression或具有不等于或可提升为 64 位整数类型的结果类型。