SqlFunctions.SoundCode(String) 方法

定义

将字母数字字符串转换为由四个字符组成的 (SOUNDEX) 代码,以便查找发音相似的字词或名称。

public:
 static System::String ^ SoundCode(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")]
public static string SoundCode (string arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")>]
static member SoundCode : string -> string
Public Shared Function SoundCode (arg As String) As String

参数

arg
String

一个有效的字符串。

返回

输入字符串的 SOUNDEX 代码。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。 有关相应SQL Server函数的信息,请参阅 SOUNDEX (Transact-SQL)

适用于