Condividi tramite


Metodo DbFunctions.Reverse

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Se utilizzato come parte di una query LINQ to Entities, questo metodo richiama la funzione EDM Reverse canonica per restituire una stringa specificata con l'ordine dei caratteri invertito.

Spazio dei nomi:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<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
'Utilizzo
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

Parametri

Valore restituito

Tipo: System.String
Stringa di input con l'ordine dei caratteri invertito.

Note

Non è possibile chiamare direttamente questa funzione. Questa funzione può essere visualizzata solo all'interno di una query LINQ to Entities. Questa funzione viene convertita in una funzione corrispondente nel database.

Vedere anche

Riferimento

DbFunctions Classe

Spazio dei nomi System.Data.Entity