DbFunctions.Reverse Method (String)

 

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.

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "stringArgument")]
[DbFunctionAttribute("Edm", "Reverse")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", 
	MessageId = "string")]
public static string Reverse(
	string stringArgument
)

Parameters

stringArgument
Type: System.String

The input string.

Return Value

Type: System.String

The input string with the order of the characters reversed.

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.