Udostępnij za pośrednictwem


EdmFunctions.Left(DbExpression, DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "Left" z określonymi argumentami, które muszą mieć ciąg i typ wyniku liczbowego liczbowego. Typ wyniku wyrażenia to ciąg.

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

Wyrażenie określające ciąg, z którego ma być wyodrębnione najdalej po lewej stronie podciąg.

length
DbExpression

Wyrażenie określające długość podciągu po lewej stronie do wyodrębnienia z stringArgumentelementu .

Zwraca

Nowa funkcja DbFunctionExpression, która zwraca najdalej po lewej stronie podciąg długości length od stringArgument.

Wyjątki

stringArgument lub length to null.

Nazwa stringArgument jest niepoprawna.

Dotyczy