Share via


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

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

See Also

Reference

SchemaDeployment Class

Microsoft.Data.Schema.Build Namespace

Project