Share via


SchemaCompareSettingsService Class

Provides standard settings that are used by the Schema Compare window in Visual Studio Premium and Visual Studio Ultimate.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.Tools.Compare.Schema.SchemaCompareSettingsService

Namespace:  Microsoft.Data.Schema.Tools.Compare.Schema
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
<DatabaseSchemaProviderCompatibilityAttribute(GetType(DatabaseSchemaProvider))> _
Public Class SchemaCompareSettingsService _
    Implements IExtensionInformation, IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public class SchemaCompareSettingsService : IExtensionInformation, 
    IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public ref class SchemaCompareSettingsService : IExtensionInformation, 
    IExtension
[<DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))>]
type SchemaCompareSettingsService =  
    class
        interface IExtensionInformation
        interface IExtension
    end
public class SchemaCompareSettingsService implements IExtensionInformation, IExtension

The SchemaCompareSettingsService type exposes the following members.

Constructors

  Name Description
Public method SchemaCompareSettingsService Initializes a new instance of the SchemaCompareSettingsService class.

Top

Properties

  Name Description
Public property ConfigurationOptions Gets or sets the options that are used when the comparison engine compares schema models and when it generates the deployment script.
Protected property DatabaseSchemaProvider Gets the current database schema provider.
Protected property DisplayableTopElementClassesTypes When overridden in a derived class, gets a list of types that represent the types of classes that are to be displayed in the Schema Compare window of Visual Studio Premium and Visual Studio Ultimate.
Public property IsCmdVariableSubstitutionEnabled When overridden in a derived class, gets a value that indicates whether to enable the Specify SQLCMD variables… button in the Schema Compare window of Visual Studio Premium and Visual Studio Ultimate.
Public property ModelInformation When overridden in a derived class, gets or sets the schema model information object.
Public property SerializationData When overridden in a derived class, gets or sets options and values to be serialized.

Top

Methods

  Name Description
Public method AllowToCompareModels
Public method AllowToUpdateTarget
Public method AreModelElementsSorted
Protected method ConvertPropertyValueToString When overridden in a derived class, returns the value of the provided object as a string.
Protected method CreateConfigurationOptions When overridden in a derived class, returns a set of deployment options.
Public method Deserialize Deserializes the schema compare settings from the specified XML.
Public method DisplayableTopElementClasses
Public method DisplayCmdVariableFilesDialog
Public method DisplayOptionsDialog When overridden in a derived class, displays the Options dialog box in Visual Studio Premium and Visual Studio Ultimate and returns the output parameter values.
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 GetElementName
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertyValue
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize
Public method InitializeForComparison When overridden in a derived class, provides an opportunity for additional initialization before the comparison process.
Public method IsModelElementACompositeProjectReference When overridden in a derived class, returns a value to indicate whether the provided element is external to the current model.
Public method IsModelElementDisplayedAtTopLevel When overridden in a derived class, returns a value that indicates whether the provided element should be displayed at the top level in the Schema Compare window of Visual Studio Premium and Visual Studio Ultimate.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NormalizeComparisonResult When overridden in a derived class, returns a normalized version of the provided comparison result by using the source and target models and configuration information.
Public method Serialize Serializes this object and saves it in the provided XML node.
Public method Sort When overridden in a derived class, returns the provided list of grid rows as a sorted list of grid rows.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IExtensionInformation.ExtensionHandle
Explicit interface implemetationPrivate method IExtensionInformation.SetExtensionHandle

Top

Remarks

This class is one of the predefined extension points for the Schema Compare window in Visual Studio ALM. The other predefined extension point is the SchemaCompareScriptService class.

Most settings in this class are intended to be overridden and modified to represent a DatabaseSchemaProvider for a specific database model and version in the Schema Compare window.

Notes to Inheritors

Other classes that you will have to extend for a derived version of this class to support a specific DatabaseSchemaProvider:

You will also need to implement the ISchemaDeploymentController interface.

For your specific implementation, you may also have to extend other classes and implement other interfaces.

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.Tools.Compare.Schema Namespace

DatabaseSchemaProvider