DbExpressionBuilder.Take(DbExpression, DbExpression) Metoda

Definice

Vytvoří novou DbLimitExpression , která omezí počet prvků v kolekci argumentů na zadanou hodnotu limitu počtu. Ve výstupu nejsou zahrnuté vázané výsledky.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLimitExpression ^ Take(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ count);
public static System.Data.Common.CommandTrees.DbLimitExpression Take(this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Common.CommandTrees.DbExpression count);
static member Take : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbLimitExpression
<Extension()>
Public Function Take (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 mezní hodnotu.

Návraty

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

Výjimky

argument nebo count má hodnotu null.

argument nemá typ výsledku kolekce, count nemá typ výsledku, který je roven nebo povýšen na 64bitový celočíselný typ.

Platí pro