ObjectQuery<T>.Skip 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
按指定条件对查询结果进行排序并跳过指定数目的结果。
命名空间: System.Data.Entity.Core.Objects
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Function Skip ( _
keys As String, _
count As String, _
ParamArray parameters As ObjectParameter() _
) As ObjectQuery(Of T)
用法
Dim instance As ObjectQuery
Dim keys As String
Dim count As String
Dim parameters As ObjectParameter()
Dim returnValue As ObjectQuery(Of T)
returnValue = instance.Skip(keys, count, _
parameters)
public ObjectQuery<T> Skip(
string keys,
string count,
params ObjectParameter[] parameters
)
public:
ObjectQuery<T>^ Skip(
String^ keys,
String^ count,
... array<ObjectParameter^>^ parameters
)
member Skip :
keys:string *
count:string *
parameters:ObjectParameter[] -> ObjectQuery<'T>
public function Skip(
keys : String,
count : String,
... parameters : ObjectParameter[]
) : ObjectQuery<T>
参数
- keys
类型:System.String
作为结果排序依据的键列。
- count
类型:System.String
要跳过的结果数。 它可以是常量或参数引用。
- parameters
类型:System.Data.Entity.Core.Objects.ObjectParameter[]
在分析时应在作用域内的一组可选查询参数。
返回值
类型:System.Data.Entity.Core.Objects.ObjectQuery<T>
一个新 ObjectQuery<T> 实例,等效于同时应用了 ORDER BY 和 SKIP 的原始实例。
异常
例外 | 条件 |
---|---|
ArgumentNullException | 任何参数为 null。 |
ArgumentException | keys 为空字符串或 count 为空字符串。 |