语言

DbExpressionBuilder.Take(DbExpression, DbExpression) 方法

定义

创建一个新 DbLimitExpression 项,用于将 Argument 集合中的元素数限制为指定的 count Limit 值。 输出中不包括绑定结果。

public static System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression Take(this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument, System.Data.Entity.Core.Common.CommandTrees.DbExpression count);
static member Take : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbLimitExpression
<Extension()>
Public Function Take (argument As DbExpression, count As DbExpression) As DbLimitExpression

参数

argument
DbExpression

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

count
DbExpression

一个指定限制值的表达式。

返回

一个新的 DbLimitExpression,其中包含不包含绑定结果的指定参数和计数限制值。

例外

参数或计数为 null。

参数没有集合结果类型,计数没有等于或可提升为 64 位整数类型的结果类型。

适用于