EdmFunctions.StartsWith(DbExpression, DbExpression) Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction « StartsWith » canonique avec les arguments spécifiés, qui doivent chacun avoir un type de résultat de 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 est recherchée au début de 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 elle commence ou non stringArgument par prefix.

S’applique à