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 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應的SQL Server函數,請參見 DIFFERENCE (Transact-SQL)

適用於