DbLimitExpression Class
Represents the restriction of the number of elements in the argument collection to the specified limit value.
System.Data.Common.CommandTrees::DbExpression
System.Data.Common.CommandTrees::DbLimitExpression
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The DbLimitExpression type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Argument | Gets or sets an expression that specifies the input collection. |
![]() | ExpressionKind | Gets the kind of the expression, which indicates the operation of this expression. (Inherited from DbExpression.) |
![]() | Limit | Gets or sets an expression that specifies the limit on the number of elements returned from the input collection. |
![]() | ResultType | Gets the type metadata for the result type of the expression. (Inherited from DbExpression.) |
![]() | WithTies | Gets whether the limit operation will include tied results. Including tied results might produce more results than specified by the Limit value. |
| Name | Description | |
|---|---|---|
![]() | Accept(DbExpressionVisitor) | Implements the visitor pattern for expressions that do not produce a result value. (Overrides DbExpression::Accept(DbExpressionVisitor).) |
![]() | Accept<TResultType>(DbExpressionVisitor<TResultType>) | Implements the visitor pattern for expressions that produce a result value of a specific type. (Inherited from DbExpression.) |
![]() | Accept<TResultType>(DbExpressionVisitor<TResultType>) | Implements the visitor pattern for expressions that produce a result value of a specific type. (Overrides DbExpression::Accept<TResultType>(DbExpressionVisitor<TResultType>).) |
![]() | Equals | Determines whether the specified Object is equal to the current DbExpression instance. (Inherited from DbExpression.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for the type. (Inherited from DbExpression.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
A DbLimitExpression can be applied to any DbExpression with a collection result type, including DbSkipExpression. DbLimitExpression provides the equivalent of the Top operation. It does not require an ordering operation to have been performed on its input. It has two Expression properties, Argument and Limit, that specify the collection and the number of rows to return respectively. DbLimitExpression also has a Boolean WithTies property that controls whether rows equal in rank to the final row are returned. WithTies defaults to false.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
