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.
- configuration
Type: System.String
- providerInvariantName
Type: System.String
The database client provider that is used to connect to the database. This must be System.Data.SqlClient.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DeployDatabaseProject Overload