EdmFunctions.Concat(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci Concat se zadanými argumenty, které musí mít každý typ výsledku řetězce. Typ výsledku výrazu je řetězec.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Concat(System::Data::Common::CommandTrees::DbExpression ^ string1, System::Data::Common::CommandTrees::DbExpression ^ string2);
public static System.Data.Common.CommandTrees.DbFunctionExpression Concat(this System.Data.Common.CommandTrees.DbExpression string1, System.Data.Common.CommandTrees.DbExpression string2);
static member Concat : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Concat (string1 As DbExpression, string2 As DbExpression) As DbFunctionExpression

Parametry

string1
DbExpression

Výraz, který určuje řetězec, který by se měl zobrazit jako první ve zřetězené výsledném řetězci.

string2
DbExpression

Výraz, který určuje řetězec, který by měl být druhý v zřetězení výsledného řetězce.

Návraty

Nový DbFunctionExpression, který vytvoří zřetězený řetězec.

Výjimky

string1 nebo string2 je null.

string1 nebo string2 je neplatný.

Platí pro