共用方式為


SqlFunctions.Difference(String, String) 方法

定義

傳回整數值,這個值會指出兩個字元運算式的 SOUNDEX 值間的差異。

public:
 static Nullable<int> Difference(System::String ^ string1, System::String ^ string2);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DIFFERENCE")]
public static int? Difference(string string1, string string2);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DIFFERENCE")>]
static member Difference : string * string -> Nullable<int>
Public Shared Function Difference (string1 As String, string2 As String) As Nullable(Of Integer)

參數

string1
String

第一個字串。

string2
String

第二個字串。

傳回

兩數字串間的 SOUNDEX 差異。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢內。

此函式會轉譯為資料庫中的對應函式。 如需對應 SQL Server 函式的相關信息,請參閱 DIFFERENCE (Transact-SQL)

適用於