src/Shared/EntityFramework/DbFunctions.cs
/// <summary>
/// When used as part of a LINQ to Entities query, this method invokes the canonical Like EDM operator to match an expression.
/// </summary>
/// <remarks>
/// You cannot call this function directly. This function can only appear within a LINQ to Entities query.
/// This function is translated to a corresponding function in the database.
/// </remarks>
/// <param name="searchString"> The string to search. </param>
/// <param name="likeExpression"> The expression to match against. </param>
/// <returns> True if the searched string matches the expression; otherwise false. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical Like EDM operator to match an expression.
When used as part of a LINQ to Entities query this method invokes the canonical Like EDM operator to match an expression .
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "searchString")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "likeExpression")]
        [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
        public static bool Like(string searchString, string likeExpression)
        {
            throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] public static bool Like ( string searchString , string likeExpression ) { throw new NotSupportedException ( Strings . ELinq_DbFunctionDirectCall ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical Like EDM operator to match an expression.
When used as part of a LINQ to Entities query this method invokes the canonical Like EDM operator to match an expression .
True if the searched string matches the expression; otherwise false.
True if the searched string matches the expression ; otherwise false .
searchString
string
The string to search.
The string to search .
likeExpression
string
The expression to match against.
The expression to match against .
remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database.
You cannot call this function directly . This function can only appear within a LINQ to Entities query . This function is translated to a corresponding function in the database .