EdmFunctions.Contains(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione "Contains" canonica con gli argomenti specificati, ognuno dei quali deve presentare un tipo di risultato String.Creates a DbFunctionExpression that invokes the canonical 'Contains' function with the specified arguments, which must each have a string result type. Il tipo di risultato dell'espressione è Boolean.The result type of the expression is Boolean.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpression ^ Contains(System::Data::Common::CommandTrees::DbExpression ^ searchedString, System::Data::Common::CommandTrees::DbExpression ^ searchedForString);
public static System.Data.Common.CommandTrees.DbExpression Contains (this System.Data.Common.CommandTrees.DbExpression searchedString, System.Data.Common.CommandTrees.DbExpression searchedForString);
static member Contains : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Contains (searchedString As DbExpression, searchedForString As DbExpression) As DbExpression

Parametri

searchedString
DbExpression

Espressione che specifica la stringa in cui cercare le occorrenze di searchedForString.An expression that specifies the string to search for any occurrence of searchedForString.

searchedForString
DbExpression

Espressione che specifica la stringa da cercare in searchedString.An expression that specifies the string to search for in searchedString.

Restituisce

DbExpression

Nuovo DbFunctionExpression che restituisce un valore booleano che indica se searchedForString si verifica o meno all'interno di searchedString.A new DbFunctionExpression that returns a Boolean value indicating whether or not searchedForString occurs within searchedString.

Eccezioni

searchedString searchedForStringsearchedString searchedForString

searchedString searchedForStringsearchedString searchedForString

Si applica a