EdmFunctions.StartsWith(DbExpression, DbExpression) Metódus

Definíció

Létrehoz egy olyan parancsot DbFunctionExpression , amely meghívja a canonical 'StartsWith' függvényt a megadott argumentumokkal, amelyeknek sztring eredménytípussal kell rendelkezniük. A kifejezés eredménytípusa logikai.

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

Paraméterek

stringArgument
DbExpression

Egy kifejezés, amely megadja a sztring elején keresendő sztringet prefix.

prefix
DbExpression

Egy kifejezés, amely megadja a célsztringet, amelyet a rendszer a fájl elején stringArgumentkeres.

Válaszok

Egy új DbFunctionExpression, amely egy logikai értéket ad vissza, amely azt jelzi, hogy a kezdőérték a következővel stringArgumentkezdődik-e.prefix

A következőre érvényes: