語言

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

適用於