Partager via


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 static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression StartsWith(this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression prefix);
static member StartsWith : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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 recherchée au début pour le préfixe de chaîne.

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 stringArgument commence ou non par le préfixe.

S’applique à