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)

适用于