EntityFunctions.AsUnicode 方法

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

作为 LINQ to Entities 查询的一部分使用时,此方法充当确保将输入作为 Unicode 字符串处理的运算符。

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

语法

声明
Public Shared Function AsUnicode ( _
    value As String _
) As String
用法
Dim value As String 
Dim returnValue As String 

returnValue = EntityFunctions.AsUnicode(value)
public static string AsUnicode(
    string value
)
public:
static String^ AsUnicode(
    String^ value
)
static member AsUnicode : 
        value:string -> string
public static function AsUnicode(
    value : String
) : String

参数

返回值

类型:System.String
作为 Unicode 字符串处理的输入字符串。

备注

无法直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数影响将 LINQ 查询转换为可以在数据库中运行的查询的方式。

请参阅

参考

EntityFunctions 类

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