Condividi tramite


ModelCollationComparer Class

Definition

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

public abstract class ModelCollationComparer : System.Collections.Generic.IComparer<Microsoft.SqlServer.Dac.Model.ObjectIdentifier>, System.Collections.Generic.IComparer<string>, System.Collections.Generic.IComparer<System.Collections.Generic.IList<string>>, System.Collections.Generic.IEqualityComparer<Microsoft.SqlServer.Dac.Model.ObjectIdentifier>, System.Collections.Generic.IEqualityComparer<string>, System.Collections.Generic.IEqualityComparer<System.Collections.Generic.IList<string>>
type ModelCollationComparer = class
    interface IEqualityComparer<string>
    interface IComparer<string>
    interface IEqualityComparer<ObjectIdentifier>
    interface IComparer<ObjectIdentifier>
    interface IEqualityComparer<IList<string>>
    interface IComparer<IList<string>>
Public MustInherit Class ModelCollationComparer
Implements IComparer(Of IList(Of String)), IComparer(Of ObjectIdentifier), IComparer(Of String), IEqualityComparer(Of IList(Of String)), IEqualityComparer(Of ObjectIdentifier), IEqualityComparer(Of String)
Inheritance
ModelCollationComparer
Implements

Constructors

ModelCollationComparer()

Methods

Compare(IList<String>, IList<String>)

Compare two objects using collation of this comparer.

Compare(ObjectIdentifier, ObjectIdentifier)

Compare two objects using collation of this comparer.

Compare(String, String)

Compare two objects using collation of this comparer.

Equals(IList<String>, IList<String>)

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

Equals(ObjectIdentifier, ObjectIdentifier)

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

Equals(String, String)

Compare if two objects are equal.

GetHashCode(IList<String>)

Gets a Hashcode for the object that's compatible with the Equals(IList<String>, IList<String>) method of this comparer

GetHashCode(ObjectIdentifier)

Gets a Hashcode for the object that's compatible with the Equals(ObjectIdentifier, ObjectIdentifier) method of this comparer

GetHashCode(String)

Gets a Hashcode for the object that's compatible with the Equals(String, String) method of this comparer

Applies to