Редагувати

Поділитися через


EdmFunctions.Contains(DbExpression, DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'Contains' function with the specified arguments, which must each have a string result type. 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

Parameters

searchedString
DbExpression

An expression that specifies the string to search for any occurrence of searchedForString.

searchedForString
DbExpression

An expression that specifies the string to search for in searchedString.

Returns

A new DbFunctionExpression that returns a Boolean value indicating whether or not searchedForString occurs within searchedString.

Exceptions

searchedString or searchedForString is null.

searchedString or searchedForString is invalid.

Applies to