EdmFunctions.Left(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci Left se zadanými argumenty, které musí mít řetězec a celočíselný typ výsledku. Typ výsledku výrazu je řetězec.

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

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, ze kterého se má extrahovat podřetězce úplně vlevo.

length
DbExpression

Výraz, který určuje délku levého podřetětětce, ze stringArgumentkterého se má extrahovat .

Návraty

Nový DbFunctionExpression, který vrátí levý dílčí řetězec délky length od stringArgument.

Výjimky

stringArgument nebo length je null.

stringArgument je neplatný.

Platí pro