Share via


DbFunctions.Reverse(String) Method

Definition

When used as part of a LINQ to Entities query, this method invokes the canonical Reverse EDM function to return a given string with the order of the characters reversed.

[System.Data.Entity.DbFunction("Edm", "Reverse")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringArgument")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
public static string Reverse (string stringArgument);
static member Reverse : string -> string
Public Shared Function Reverse (stringArgument As String) As String

Parameters

stringArgument
String

The input string.

Returns

The input string with the order of the characters reversed.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query. This function is translated to a corresponding function in the database.

Applies to