Edit

Share via


SqlFunctions.Difference(String, String) Method

Definition

Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.

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)

Parameters

string1
String

The first string.

string2
String

The second string.

Returns

The SOUNDEX difference between the two strings.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DIFFERENCE (Transact-SQL).

Applies to