EdmFunctions.Right(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression,其會利用指定的引數叫用標準 'Right' 函式,此作業的結果類型必須是字串與整數。 運算式的結果類型為字串。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Right (this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression length);
static member Right : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Right (stringArgument As DbExpression, length As DbExpression) As DbFunctionExpression
參數
- stringArgument
- DbExpression
運算式,指定要從中擷取最右邊子字串的字串。
- length
- DbExpression
運算式,指定要從 stringArgument 擷取之最右邊子字串的長度。
傳回
新的 DbFunctionExpression,傳回 stringArgument 長度最右邊的子字串。