EdmFunctions.StartsWith(DbExpression, DbExpression) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.