EdmFunctions.StartsWith(DbExpression, DbExpression) Metoda

Definice

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

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

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, který je prohledán na začátku řetězce prefix.

prefix
DbExpression

Výraz, který určuje cílový řetězec, který je vyhledán na začátku stringArgument.

Návraty

Nový DbFunctionExpression, který vrátí logickou hodnotu určující, zda nebo ne stringArgument začíná na prefix.

Platí pro