Bagikan melalui


ModelComparisonResult Class

Represents the SchemaModel comparison result.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelComparisonResult

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

Syntax

'Declaration
Public NotInheritable Class ModelComparisonResult
public sealed class ModelComparisonResult
public ref class ModelComparisonResult sealed
[<Sealed>]
type ModelComparisonResult =  class end
public final class ModelComparisonResult

The ModelComparisonResult type exposes the following members.

Constructors

  Name Description
Public method ModelComparisonResult() Initializes a new instance of the ModelComparisonResult class.
Public method ModelComparisonResult(ModelComparisonResult) Initializes a new instance of the ModelComparisonResult class.

Top

Properties

  Name Description
Public property ElementGroupsEqual
Public property ElementsChanged Gets a collection of elements that are changed.
Public property ElementsComposingChildrenChanged
Public property ElementsEqual Gets a collection of elements that have no changes.
Public property ElementsHierarchicalChildrenChanged Gets a collection of elements that are changed because hierarchical children are changed.
Public property ElementsPropertyChanged Gets a collection of elements that are changed because properties are changed.
Public property ElementsRelationshipEntryChanged Gets a collection of elements that are changed because relationship entries are added or dropped.
Public property ElementsToAdd Gets a collection of elements that are located in the source but not in the target.
Public property ElementsToDrop Gets a collection of elements that are located in the target but not in the source.
Public property IsEqual Returns a value that indicates whether compared elements are equal.

Top

Methods

  Name Description
Public method AddToAddElementList(IModelElement) Adds an element to the add element list.
Public method AddToAddElementList(IList<IModelElement>) Adds elements to the add element list.
Public method AddToChangedElementList(IDictionary<IModelElement, ModelComparisonChangeDefinition>)
Public method AddToChangedElementList(IModelElement, ModelComparisonChangeDefinition)
Public method AddToDropElementList(IModelElement) Adds an element to the drop elements list.
Public method AddToDropElementList(IList<IModelElement>) Adds a list of elements to the drop elements list.
Public method AddToEqualElementGroupList
Public method AddToEqualElementList(IDictionary<IModelElement, IModelElement>) Adds a list of elements to the equal elements list.
Public method AddToEqualElementList(IModelElement, IModelElement) Adds an element that is equal from the source to the target.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExcludeResults Filters the comparison result with excluded types.
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 GetResultType Returns the result type for this element.
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.)
Public method Normalize Iterates changed elements and determines whether any difference in the change definition exists. If the result was modified and nothing is changed, the element is added to the equal list.
Public method RemoveFromAddElementList(IModelElement) Removes an element from the add elements list.
Public method RemoveFromAddElementList(IList<IModelElement>) Removes a list of elements from the add elements list.
Public method RemoveFromChangedElementList(IModelElement) Removes an element from the changed elements list.
Public method RemoveFromChangedElementList(IList<IModelElement>) Removes a list of elements from the changed elements list.
Public method RemoveFromDropElementList(IModelElement) Removes an element from the drop elements list.
Public method RemoveFromDropElementList(IList<IModelElement>) Removes a list of elements from the drop elements list.
Public method RemoveFromEqualElementGroupList
Public method RemoveFromEqualElementList(IModelElement) Removes an element from the equal elements list.
Public method RemoveFromEqualElementList(IList<IModelElement>) Removes a list of elements from the equal elements list.
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.SchemaModel Namespace