Тіл

EdmFunctions.Left(DbExpression, DbExpression) Метод

Определение

DbFunctionExpression Создает функцию", которая вызывает каноническую функцию "Left" с указанными аргументами, которые должны иметь строковый и целый числовый тип результата. Тип результата выражения — строка.

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

Параметры

stringArgument
DbExpression

Выражение, указывающее строку, из которой извлекается самая левая подстрока.

length
DbExpression

Выражение, указывающее длину самой левой подстроки для извлечения из stringArgument.

Возвращаемое значение

Новое dbFunctionExpression, которое возвращает самую левую подстроку длины length из stringArgument.

Исключения

stringArgument или length есть null.

stringArgument недопустим.

Применяется к