EdmFunctions.EndsWith Method (DbExpression, DbExpression)

.NET Framework (current version)
 

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.

Namespace:   System.Data.Common.CommandTrees.ExpressionBuilder
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbFunctionExpression EndsWith(
	this DbExpression stringArgument,
	DbExpression suffix
)

Parameters

stringArgument
Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the string that is searched at the end for string suffix.

suffix
Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the target string that is searched for at the end of stringArgument.

Return Value

Type: System.Data.Common.CommandTrees.DbFunctionExpression

A new DbFunctionExpression that returns a Boolean value indicating whether or not stringArgument ends with suffix.

.NET Framework
Available since 4.5
Return to top
Show: