Sdílet prostřednictvím


DbExpressionBuilder.Take(DbExpression, DbExpression) Metoda

Definice

Vytvoří nový DbLimitExpression , který omezuje počet prvků v kolekci Argument na zadanou hodnotu limit počtu. Svázané výsledky nejsou ve výstupu zahrnuty.

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

Parametry

argument
DbExpression

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

count
DbExpression

Výraz, který určuje limitní 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 počet je null.

argument nemá typ výsledku kolekce, počet nemá typ výsledku, který je roven nebo lze umistit na 64bitový typ integer.

Platí pro