DatabaseTestService.DeployDatabaseProject Method (String, String, String, String)

Deploys a database project to the database that is specified in the referenced configuration.

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

Syntax

'Declaration
Protected Shared Sub DeployDatabaseProject ( _
    databaseProjectFileName As String, _
    configuration As String, _
    providerInvariantName As String, _
    connectionString As String _
)
protected static void DeployDatabaseProject(
    string databaseProjectFileName,
    string configuration,
    string providerInvariantName,
    string connectionString
)
protected:
static void DeployDatabaseProject(
    String^ databaseProjectFileName, 
    String^ configuration, 
    String^ providerInvariantName, 
    String^ connectionString
)
static member DeployDatabaseProject : 
        databaseProjectFileName:string * 
        configuration:string * 
        providerInvariantName:string * 
        connectionString:string -> unit 
protected static function DeployDatabaseProject(
    databaseProjectFileName : String, 
    configuration : String, 
    providerInvariantName : String, 
    connectionString : String
)

Parameters

  • databaseProjectFileName
    Type: System.String
    The path of the database project file.
  • connectionString
    Type: System.String
    The connection string for the target database. This must be a connection string to a SQL database.

Remarks

This method deploys a database project if the necessary information has been added to the app.config file by using the classes provided in the Microsoft.Data.Schema.UnitTesting.Configuration namespace.

A privileged connection context is used to deploy the database.

.NET Framework Security

See Also

Reference

DatabaseTestService Class

DeployDatabaseProject Overload

Microsoft.Data.Schema.UnitTesting Namespace

System.Data.SqlClient

Microsoft.Data.Schema.UnitTesting.Configuration