语言

DbLimitExpression.Limit 属性

定义

获取一个表达式,该表达式指定从输入集合返回的元素数的限制。

public System.Data.Entity.Core.Common.CommandTrees.DbExpression Limit { get; }
member this.Limit : System.Data.Entity.Core.Common.CommandTrees.DbExpression
Public ReadOnly Property Limit As DbExpression

属性值

一个表达式,指定从输入集合返回的元素数的限制。

例外

表达式为 null。

该表达式不与命令树 DbLimitExpression 关联,或者不是其中一种 DbConstantExpressionDbParameterReferenceExpression ,或者其结果类型不等于或可提升为 64 位整数类型。

适用于