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);

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

Product Versions
Entity Framework 6.2.0