EdmFunctions.EndsWith(DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression,它使用指定的参数(每个参数都必须具有字符串结果类型)调用规范“EndsWith”函数。 表达式的结果类型为 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

参数

stringArgument
DbExpression

一个表达式,指定在末尾搜索字符串后缀的字符串。

suffix
DbExpression

一个表达式,指定在 stringArgument 末尾搜索的目标字符串。

返回

一个新的 DbFunctionExpression,它返回一个布尔值,指示 stringArgument 是否以后缀结尾。

适用于