Share via


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 static System.Data.Entity.Core.Common.CommandTrees.DbExpression Contains (this System.Data.Entity.Core.Common.CommandTrees.DbExpression searchedString, System.Data.Entity.Core.Common.CommandTrees.DbExpression searchedForString);
static member Contains : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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 occurence 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.

Applies to