EdmFunctions.StartsWith(DbExpression, DbExpression) Méthode

Définition

Crée un objet DbFunctionExpression appelant la fonction 'StartsWith' canonique avec les arguments spécifiés, qui doivent tous avoir un résultat de type chaîne. Le type de résultat de l'expression est booléen.

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ètres

stringArgument
DbExpression

Expression qui spécifie la chaîne qui fait l’objet d’une recherche au début pour la chaîne prefix.

prefix
DbExpression

Expression qui spécifie la chaîne cible recherchée au début de stringArgument.

Retours

Nouvelle DbFunctionExpression qui retourne une valeur booléenne indiquant si commence ou non stringArgument par prefix.

S’applique à