EdmFunctions.EndsWith(DbExpression, DbExpression) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a DbFunctionExpression that invokes the canonical 'EndsWith' 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.DbFunctionExpression EndsWith (this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression suffix);
static member EndsWith : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function EndsWith (stringArgument As DbExpression, suffix As DbExpression) As DbFunctionExpression
Parameters
- stringArgument
- DbExpression
An expression that specifies the string that is searched at the end for string suffix.
- suffix
- DbExpression
An expression that specifies the target string that is searched for at the end of stringArgument.
Returns
A new DbFunctionExpression that returns a Boolean value indicating whether or not stringArgument ends with suffix.
Applies to
Entity Framework