SchemaDeployment.SetDeployToDatabase Method
Call this method after a manifest is loaded to specify whether the deployment plan is deployed to the target database.
Namespace: Microsoft.Data.Schema.Build
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Sub SetDeployToDatabase ( _
deployToDatabase As Boolean _
)
public void SetDeployToDatabase(
bool deployToDatabase
)
public:
void SetDeployToDatabase(
bool deployToDatabase
)
member SetDeployToDatabase :
deployToDatabase:bool -> unit
public function SetDeployToDatabase(
deployToDatabase : boolean
)
Parameters
- deployToDatabase
Type: System.Boolean
true to deploy to a database.
Remarks
Call this method after you load the manifest tooverride the deployment setting in the manifest. If the parameter is set to true, a connection string must also be supplied so that deployment can occur.
.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.