共用方式為


DbFunctions.Reverse 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

用於 LINQ to Entities 查詢時,此方法會叫用標準 EDM 函式 Reverse 以反向字元的順序傳回指定的字串。

命名空間:  System.Data.Entity
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<DbFunctionAttribute("Edm", "Reverse")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "stringArgument")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId := "string")> _
Public Shared Function Reverse ( _
    stringArgument As String _
) As String
'用途
Dim stringArgument As String 
Dim returnValue As String 

returnValue = DbFunctions.Reverse(stringArgument)
[DbFunctionAttribute("Edm", "Reverse")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArgument")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
public static string Reverse(
    string stringArgument
)
[DbFunctionAttribute(L"Edm", L"Reverse")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"stringArgument")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1720:IdentifiersShouldNotContainTypeNames", MessageId = L"string")]
public:
static String^ Reverse(
    String^ stringArgument
)
[<DbFunctionAttribute("Edm", "Reverse")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArgument")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")>]
static member Reverse : 
        stringArgument:string -> string
public static function Reverse(
    stringArgument : String
) : String

參數

傳回值

類型:System.String
具有反向字元順序的輸入字串。

備註

您不可以直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢內。 此函式會轉譯為資料庫中的對應函式。

請參閱

參考

DbFunctions 類別

System.Data.Entity 命名空間