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 ref class ModelCollationComparer abstract : IEqualityComparer<String^>, 
	IComparer<String^>, IEqualityComparer<ObjectIdentifier^>, IComparer<ObjectIdentifier^>, 
	IEqualityComparer<IList<String^>^>, IComparer<IList<String^>^>

NameDescription
System_CAPS_protmethodModelCollationComparer()

Initializes a new instance of the ModelCollationComparer class.

NameDescription
System_CAPS_pubmethodCompare(IList<String^>^, IList<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<String^>^, IList<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<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: