Metodo SqlFunctions.Difference
[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.]
Restituisce un valore Integer che indica la differenza tra i valori SOUNDEX di due espressioni di caratteri.
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId := "string")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "string1")> _
<DbFunctionAttribute("SqlServer", "DIFFERENCE")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "string2")> _
Public Shared Function Difference ( _
string1 As String, _
string2 As String _
) As Nullable(Of Integer)
'Utilizzo
Dim string1 As String
Dim string2 As String
Dim returnValue As Nullable(Of Integer)
returnValue = SqlFunctions.Difference(string1, _
string2)
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string1")]
[DbFunctionAttribute("SqlServer", "DIFFERENCE")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string2")]
public static Nullable<int> Difference(
string string1,
string string2
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1720:IdentifiersShouldNotContainTypeNames", MessageId = L"string")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"string1")]
[DbFunctionAttribute(L"SqlServer", L"DIFFERENCE")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"string2")]
public:
static Nullable<int> Difference(
String^ string1,
String^ string2
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string1")>]
[<DbFunctionAttribute("SqlServer", "DIFFERENCE")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "string2")>]
static member Difference :
string1:string *
string2:string -> Nullable<int>
public static function Difference(
string1 : String,
string2 : String
) : Nullable<int>
Parametri
- string1
Tipo: System.String
Prima stringa.
- string2
Tipo: System.String
Seconda stringa.
Valore restituito
Tipo: System.Nullable<Int32>
Differenza SOUNDEX tra le due stringhe.