Sdílet prostřednictvím


DbExpressionBuilder.Limit(DbExpression, DbExpression) Metoda

Definice

Vytvoří nový DbLimitExpression , který omezuje počet prvků v kolekci Argument na zadanou hodnotu count Limit. Ve výstupu nejsou zahrnuté vázané výsledky.

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

Parametry

argument
DbExpression

Výraz, který určuje vstupní kolekci.

count
DbExpression

Výraz, který určuje hodnotu limitu.

Návraty

Nový DbLimitExpression se zadaným argumentem a hodnotami limitu počtu, které nezahrnují vázané výsledky.

Výjimky

argument nebo count má hodnotu null.

argument nemá typ výsledku kolekce nebo count nemá typ výsledku, který je roven nebo je možné ho použít jako 64bitový typ integer.

Platí pro