Share via


DbExpressionBuilder.Invoke Metoda

Definice

Vytvoří nový DbLambdaExpression představující použití zadané funkce Lambda na dané argumenty.

Přetížení

Invoke(EdmFunction, DbExpression[])

Vytvoří nový DbFunctionExpression představující vyvolání zadané funkce s danými argumenty.

Invoke(EdmFunction, IEnumerable<DbExpression>)

Vytvoří nový DbFunctionExpression představující vyvolání zadané funkce s danými argumenty.

Invoke(DbLambda, IEnumerable<DbExpression>)

Vytvoří nový DbLambdaExpression představující použití zadané funkce Lambda na dané argumenty.

Invoke(DbLambda, DbExpression[])

Vytvoří nový DbLambdaExpression představující použití zadané funkce Lambda na dané argumenty.

Invoke(EdmFunction, DbExpression[])

Vytvoří nový DbFunctionExpression představující vyvolání zadané funkce s danými argumenty.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Invoke(System::Data::Metadata::Edm::EdmFunction ^ function, ... cli::array <System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Metadata.Edm.EdmFunction function, params System.Data.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Metadata.Edm.EdmFunction * System.Data.Common.CommandTrees.DbExpression[] -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Invoke (function As EdmFunction, ParamArray arguments As DbExpression()) As DbFunctionExpression

Parametry

function
EdmFunction

Metadata funkce, která se má vyvolat.

arguments
DbExpression[]

Výrazy, které poskytují argumenty pro funkci.

Návraty

Nový DbFunctionExpression představující vyvolání funkce.

Výjimky

function is null, or arguments is null or contains null.

Počet arguments parametrů se nerovná počtu parametrů deklarovaných funkcí functionnebo arguments obsahuje výraz s typem výsledku, který se nerovná odpovídajícímu typu parametru funkce nebo není možné ho použít.

Platí pro

Invoke(EdmFunction, IEnumerable<DbExpression>)

Vytvoří nový DbFunctionExpression představující vyvolání zadané funkce s danými argumenty.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Invoke(System::Data::Metadata::Edm::EdmFunction ^ function, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbFunctionExpression Invoke (this System.Data.Metadata.Edm.EdmFunction function, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Metadata.Edm.EdmFunction * seq<System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Invoke (function As EdmFunction, arguments As IEnumerable(Of DbExpression)) As DbFunctionExpression

Parametry

function
EdmFunction

Metadata funkce, která se má vyvolat.

arguments
IEnumerable<DbExpression>

Seznam výrazů, které poskytují argumenty funkce.

Návraty

Nový DbFunctionExpression představující vyvolání funkce.

Výjimky

function is null, or arguments is null or contains null.

Počet arguments parametrů se nerovná počtu parametrů deklarovaných funkcí functionnebo arguments obsahuje výraz s typem výsledku, který se nerovná odpovídajícímu typu parametru funkce nebo není možné ho použít.

Platí pro

Invoke(DbLambda, IEnumerable<DbExpression>)

Vytvoří nový DbLambdaExpression představující použití zadané funkce Lambda na dané argumenty.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLambdaExpression ^ Invoke(System::Data::Common::CommandTrees::DbLambda ^ lambda, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Common.CommandTrees.DbLambda lambda, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbExpression> arguments);
static member Invoke : System.Data.Common.CommandTrees.DbLambda * seq<System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbLambdaExpression
<Extension()>
Public Function Invoke (lambda As DbLambda, arguments As IEnumerable(Of DbExpression)) As DbLambdaExpression

Parametry

lambda
DbLambda

Instance DbLambda představující funkci Lambda, která se má použít.

arguments
IEnumerable<DbExpression>

Seznam výrazů, které poskytují argumenty.

Návraty

Nový DbLambdaExpression představující aplikaci funkce Lambda.

Výjimky

lambda nebo arguments má hodnotu null.

Počet proměnných arguments se nerovná počtu proměnných deklarovaných pomocí lambdanebo arguments obsahuje výraz, který má typ výsledku, který se nerovná odpovídajícímu typu proměnné nebo není možné ho použít.

Platí pro

Invoke(DbLambda, DbExpression[])

Vytvoří nový DbLambdaExpression představující použití zadané funkce Lambda na dané argumenty.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLambdaExpression ^ Invoke(System::Data::Common::CommandTrees::DbLambda ^ lambda, ... cli::array <System::Data::Common::CommandTrees::DbExpression ^> ^ arguments);
public static System.Data.Common.CommandTrees.DbLambdaExpression Invoke (this System.Data.Common.CommandTrees.DbLambda lambda, params System.Data.Common.CommandTrees.DbExpression[] arguments);
static member Invoke : System.Data.Common.CommandTrees.DbLambda * System.Data.Common.CommandTrees.DbExpression[] -> System.Data.Common.CommandTrees.DbLambdaExpression
<Extension()>
Public Function Invoke (lambda As DbLambda, ParamArray arguments As DbExpression()) As DbLambdaExpression

Parametry

lambda
DbLambda

Instance DbLambda představující funkci Lambda, která se má použít.

arguments
DbExpression[]

Výrazy, které poskytují argumenty.

Návraty

Nový DbLambdaExpression představující aplikaci funkce Lambda.

Výjimky

lambda nebo arguments má hodnotu null.

Počet proměnných arguments se nerovná počtu proměnných deklarovaných pomocí lambdanebo arguments obsahuje výraz, který má typ výsledku, který se nerovná odpovídajícímu typu proměnné nebo není možné ho použít.

Platí pro