Поделиться через


SqlModelComparer Class

Class that is used to compare a source and target schema model.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class SqlModelComparer _
    Inherits ModelComparer
public abstract class SqlModelComparer : ModelComparer
public ref class SqlModelComparer abstract : public ModelComparer
[<AbstractClass>]
type SqlModelComparer =  
    class
        inherit ModelComparer
    end
public abstract class SqlModelComparer extends ModelComparer

The SqlModelComparer type exposes the following members.

Properties

  Name Description
Public property DatabaseSchemaProvider Gets the database schema provider for this comparer.
Public property Schema Gets the schema that is associated with the comparer.

Top

Methods

  Name Description
Protected method ArePropertiesEqual Returns a value that indicates whether the properties of two elements are equal. (Overrides ModelComparer.ArePropertiesEqual(IModelElement, IModelElement, ModelPropertyClass, ModelComparerConfiguration).)
Public method Cancel Cancels comparison. (Inherited from ModelComparer.)
Public method Compare(IModelElement, IModelElement) Compares two elements without a filter. (Inherited from ModelComparer.)
Public method Compare(ModelStore, ModelStore) Compares two models without a filter. (Inherited from ModelComparer.)
Public method Compare(IModelElement, IModelElement, ModelComparerConfiguration) Compares two elements. (Inherited from ModelComparer.)
Public method Compare(ModelStore, ModelStore, ModelComparerConfiguration) Compares two models with a passed-in filter. (Inherited from ModelComparer.)
Protected method CompareRelationship Compares a relationship in the source and target models. (Overrides ModelComparer.CompareRelationship(IModelRelationship, IModelRelationship, ModelComparerConfiguration, ModelComparisonChangeDefinition).)
Public method CreateDefaultConfiguration Creates the default comparison configuration. (Overrides ModelComparer.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 Called when the comparison of an element has completed. (Overrides ModelComparer.OnCompareElementFinished(IModelElement, IModelElement, ModelComparerConfiguration, ModelComparisonResult, ModelComparisonChangeDefinition).)
Protected method OnCompareModelFinished Called when the model comparison has completed. (Overrides ModelComparer.OnCompareModelFinished(ModelStore, ModelStore, ModelComparerConfiguration, ModelComparisonResult).)
Protected method OnCompareModelStarted Called when the model comparison has started. (Overrides ModelComparer.OnCompareModelStarted(ModelStore, ModelStore, ModelComparerConfiguration).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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.Sql.SchemaModel Namespace