Condividi tramite


Metodo SqlFunctions.SoundCode

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Converte una stringa alfanumerica in un codice di quattro caratteri (SOUNDEX) per trovare parole o nomi simili.

Spazio dei nomi:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "arg")> _
<DbFunctionAttribute("SqlServer", "SOUNDEX")> _
Public Shared Function SoundCode ( _
    arg As String _
) As String
'Utilizzo
Dim arg As String 
Dim returnValue As String 

returnValue = SqlFunctions.SoundCode(arg)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
[DbFunctionAttribute("SqlServer", "SOUNDEX")]
public static string SoundCode(
    string arg
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"arg")]
[DbFunctionAttribute(L"SqlServer", L"SOUNDEX")]
public:
static String^ SoundCode(
    String^ arg
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")>]
[<DbFunctionAttribute("SqlServer", "SOUNDEX")>]
static member SoundCode : 
        arg:string -> string
public static function SoundCode(
    arg : String
) : String

Parametri

Valore restituito

Tipo: System.String
Codice SOUNDEX della stringa di input.

Vedere anche

Riferimento

SqlFunctions Classe

Spazio dei nomi System.Data.Entity.SqlServer