DbFunctions.Reverse, méthode
[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]
Lorsqu'elle est utilisée dans le cadre d'une requête LINQ to Entities, cette méthode appelle la fonction EDM canonique Reverse pour retourner une chaîne donnée avec l'ordre des caractères inversé.
Espace de noms : System.Data.Entity
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
<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
'Utilisation
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
Paramètres
- stringArgument
Type : System.String
Chaîne d'entrée.
Valeur de retour
Type : System.String
Chaîne d'entrée dont l'ordre des caractères est inversé.
Notes
Vous ne pouvez pas appeler directement cette fonction. Cette fonction peut s'afficher uniquement dans une requête LINQ to Entities. Cette fonction est traduite en une fonction correspondante dans la base de données.