Bagikan melalui


ModelComparer Class

Represents the comparison engine used to compare two models or two elements.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelComparer
    Microsoft.Data.Schema.Sql.SchemaModel.SqlModelComparer

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Class ModelComparer
public class ModelComparer
public ref class ModelComparer
type ModelComparer =  class end
public class ModelComparer

The ModelComparer type exposes the following members.

Constructors

  Name Description
Protected method ModelComparer

Top

Methods

  Name Description
Protected method ArePropertiesEqual
Public method Cancel Cancels comparison.
Public method Compare(IModelElement, IModelElement) Compares two elements without a filter.
Public method Compare(ModelStore, ModelStore) Compares two models without a filter.
Public method Compare(IModelElement, IModelElement, ModelComparerConfiguration) Compares two elements.
Public method Compare(ModelStore, ModelStore, ModelComparerConfiguration) Compares two models with a passed-in filter.
Protected method CompareRelationship
Public method CreateDefaultConfiguration
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCompareElementFinished
Protected method OnCompareModelFinished
Protected method OnCompareModelStarted
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This class is DSP-agnostic and can be used to compare two models or two elements.

Thread Safety

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

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace