API Reference for Database Features of Visual Studio

By using the information in this section, you can extend the features of Visual Studio Premium in the following ways:

  • Create custom data generators to produce test data that meets specific needs.

  • Create custom data distributions to control the distribution of your test data.

  • Create custom conditions for database unit tests to test for specific pass-or-fail criteria.

  • Create custom refactoring types to perform additional refactoring operations on your database project.

  • Create custom refactoring contributors so that you and your team can use refactoring on additional targets in your database project.

  • Create custom rules to identify additional design, naming, or performance issues in database code.

This section contains the following key namespaces:

Microsoft.Data.Schema.UnitTesting

Provides classes that you can use to create and execute database unit tests.

Microsoft.Data.Schema.Refactoring

Provides classes that you can use to create custom types and targets for refactoring.

Microsoft.Data.Schema.StaticCodeAnalysis

Provides classes that you can use to create additional rules for analyzing database code.

Microsoft.Data.Schema.Build

Provides classes that you can use to create build and deployment contributors that perform additional operations when database projects are built or deployed.

This section also includes the following namespaces:

The following types support the .NET Framework infrastructure and are not intended to be used directly from your code.

Extending the Database Features of Visual Studio

Provides background information about how to create extensions for features of Visual Studio Premium.

Generate Specialized Test Data with a Custom Data Generator

Describes how you can create custom data generators to produce specialized test data for your database.

Define Custom Conditions for Database Unit Tests

Describes how you can create additional conditions to verify data states that you cannot verify with the conditions that are built in to Visual Studio Premium and Visual Studio Ultimate.

Create Custom Database Refactoring Types or Targets

Describes how you can create additional types of database refactoring or extend refactoring types to operate on additional targets within your database project.

Create and Register Additional Rules for Analyzing Database Code

Describes how you can create additional rules to identify design, naming, or performance issues in your database code.

Community Additions

ADD
Show: