ModelCollationComparer Class

SQL Server 2014
 

Updated: April 20, 2017

Represents a comparer that can compare strings and ObjectIdentifiers using the collation of a TSqlModel. This can be very useful when comparing objects in the model since comparisons will be consistent with the expected comparison results in SQL Server.

Namespace:   Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

System.Object
  Microsoft.SqlServer.Dac.Model.ModelCollationComparer

Public MustInherit Class ModelCollationComparer
	Implements IEqualityComparer(Of String), IComparer(Of String), IEqualityComparer(Of ObjectIdentifier),
	IComparer(Of ObjectIdentifier), IEqualityComparer(Of IList(Of String)),
	IComparer(Of IList(Of String))

NameDescription
System_CAPS_protmethodModelCollationComparer()

Initializes a new instance of the ModelCollationComparer class.

NameDescription
System_CAPS_pubmethodCompare(IList(Of String), IList(Of String))

Compares two objects using collation of this comparer.

System_CAPS_pubmethodCompare(ObjectIdentifier, ObjectIdentifier)

Compares two objects using collation of this comparer.

System_CAPS_pubmethodCompare(String, String)

Compares two objects using collation of this comparer.

System_CAPS_pubmethodEquals(IList(Of String), IList(Of String))

Tests if two identifiers are equal using collation of this comparer.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodEquals(ObjectIdentifier, ObjectIdentifier)

Tests if two identifiers are equal using collation of this comparer.

System_CAPS_pubmethodEquals(String, String)

Compares if two objects are equal.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode(IList(Of String))

Gets a Hashcode for the object that's compatible with the Equals method of this comparer.

System_CAPS_pubmethodGetHashCode(ObjectIdentifier)

Gets a Hashcode for the object that's compatible with the Equals method of this comparer.

System_CAPS_pubmethodGetHashCode(String)

Gets a Hashcode for the object that's compatible with the Equals method of this comparer.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: