EntityFunctions.Reverse 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

作为 LINQ to Entities 查询的一部分使用时,此方法调用规范 Reverse 函数以返回其字符顺序反转的指定字符串。

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "stringArgument")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId := "string")> _
<DbFunctionAttribute("Edm", "Reverse")> _
Public Shared Function Reverse ( _
    stringArgument As String _
) As String
用法
Dim stringArgument As String 
Dim returnValue As String 

returnValue = EntityFunctions.Reverse(stringArgument)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArgument")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
[DbFunctionAttribute("Edm", "Reverse")]
public static string Reverse(
    string stringArgument
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"stringArgument")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1720:IdentifiersShouldNotContainTypeNames", MessageId = L"string")]
[DbFunctionAttribute(L"Edm", L"Reverse")]
public:
static String^ Reverse(
    String^ stringArgument
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArgument")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")>]
[<DbFunctionAttribute("Edm", "Reverse")>]
static member Reverse : 
        stringArgument:string -> string
public static function Reverse(
    stringArgument : String
) : String

参数

返回值

类型:System.String
以反转字符顺序显示的输入字符串。

备注

无法直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将被转换为数据库中对应的函数。

请参阅

参考

EntityFunctions 类

System.Data.Entity.Core.Objects 命名空间