共用方式為


EdmFunctions.EndsWith(DbExpression, DbExpression) 方法

定義

建立會使用指定引數叫用標準 'EndsWith' 函式的 DbFunctionExpression,其中的引數都必須具有字串結果型別。 運算式的結果型別為布林值。

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 是否以後綴結尾。

適用於