We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Microsoft.VisualStudio.Data.Schema.Package.Refactoring Namespace

Visual Studio 2010

This namespace contains base classes that you can use to create your own database refactoring types and targets. For more information, see Create Custom Database Refactoring Types or Targets.

  ClassDescription
Public classApplyChangesEventArgsProvides information to PreApply and PostApply methods so that RefactoringContributor instances and RefactoringOperation instances can perform actions. Input includes the change proposals that the user wants to apply. For more information, see Create Custom Database Refactoring Types or Targets.
Public classChangeProposalAbstract base class of all kinds of change proposals for database refactoring operations. For more information, see Create Custom Database Refactoring Types or Targets.
Public classContributorInputRepresents the data input to each refactoring contributor. For each contributor type, a derived ContributorInput class will be created. Each ContributorInput has an associated RefactoringOperation. The refactoring operation class sets this property when it creates the initial ContributorInput. Then the refactoring manager passes this property to any ContributorInput instances that handle side effects. For more information, see Create Custom Database Refactoring Types or Targets.
Public classFileChangeRepresents changes for one file. Those changes can be from different refactoring contributors and can be from different refactoring preview groups. After the refactoring contributor manager returns a list of ChangeProposal, RefactoringOperation groups those changes to a list of FileChange. The refactoring operation uses this list of FileChange to apply change to each file. The refactoring operation also converts this list to a list of PreviewChangesNode, and displays the changes in the preview dialog box. For more information, see Create Custom Database Refactoring Types or Targets.
Public classPreviewWindowInfoThis class contains all preview data for a RefactoringOperation. The preview dialog box uses the information in this class to populate the dialog box. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringCommandAbstract base class for all refactoring commands that are available in database projects. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringContributorThe base class from which all RefactoringContributor classes derive. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringContributor<TContributorInput>This class accepts a ContributorInput parameter, suggests change proposals, and creates additional ContributorInputs to be processed. This class performs most of the work of proposing and notifying the manager of changes. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringErrorThis class defines a database refactoring error. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringFileNodeCommandBase class for all refactoring commands on Solution Explorer file nodes for database projects. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringOperationEach database refactoring type has a class that is derived from RefactoringOperation. The RefactoringOperation class manages the complete life cycle of the refactoring operation. An instance of this class exists only for the duration of the refactoring operation. The RefactoringOperation base class drives the actual life cycle of the refactoring operation. The methods of the derived class are invoked by the base class methods. The RefactoringOperation serves as the launch point for a refactoring operation, and presents user interface (UI) to the user to gather required input for the refactoring operation. The base class provides services such as the preview user interface. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringPreviewGroupCaptures check-box settings, friendly name, and other information for a preview group. A RefactoringPreviewGroup contains only group information, and does not contain the list of changes. The contributor class of the operation contains RefactoringPreviewGroup and a list of changes. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringProjectNodeCommandBase command for all refactoring commands on database project nodes. For more information, see Create Custom Database Refactoring Types or Targets.
Public classRefactoringSchemaViewNodeCommandBase class for all refactoring commands on a schema view node in a database project. For more information, see Create Custom Database Refactoring Types or Targets.
Public classTextChangeProposalThe ChangeProposal class represents the changes returned from the contributors. These changes represent the file, offset, lengths, new value, and old value of a proposed change. For more information, see Create Custom Database Refactoring Types or Targets.

  EnumerationDescription
Public enumerationQueryStatusResultFlags enumeration that represents RefactoringCommand status on a project or file node in Solution Explorer, or status on an element node in Schema View. For more information, see Create Custom Database Refactoring Types or Targets.
Public enumerationRefactoringErrorCategoryRefactoring error category. Specifying a category determines where the error message will be shown, such as the Preview Changes dialog box or the event log. For more information, see Create Custom Database Refactoring Types or Targets.
Show: