Compartir a través de


DbFunctions.Reverse (Método)

[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].

Cuando se usa como parte de una consulta LINQ to Entities, este método invoca la función canónica Reverse de EDM para devolver una cadena especificada con el orden de los caracteres invertido.

Espacio de nombres:  System.Data.Entity
Ensamblado:  EntityFramework (en EntityFramework.dll)

Sintaxis

'Declaración
<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
'Uso
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

Parámetros

Valor devuelto

Tipo: System.String
Cadena de entrada con el orden de los caracteres invertido.

Comentarios

No se puede llamar directamente a esta función. Esta función solo puede aparecer dentro de una consulta LINQ to Entities. Esta función se traduce a una función correspondiente de la base de datos.

Vea también

Referencia

DbFunctions Clase

System.Data.Entity (Espacio de nombres)