SchemaDeploymentOptions Class

Represents settings that are available to configure how a deployment plan is generated.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.Build.SchemaDeploymentOptions
    Microsoft.Data.Schema.Sql.Build.SqlSchemaDeploymentOptions

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

Syntax

'Declaration
<DatabaseSchemaProviderCompatibilityAttribute(GetType(DatabaseSchemaProvider))> _
Public MustInherit Class SchemaDeploymentOptions _
    Implements IExtensionInformation, IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public abstract class SchemaDeploymentOptions : IExtensionInformation, 
    IExtension
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
public ref class SchemaDeploymentOptions abstract : IExtensionInformation, 
    IExtension
[<AbstractClass>]
[<DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))>]
type SchemaDeploymentOptions =  
    class
        interface IExtensionInformation
        interface IExtension
    end
public abstract class SchemaDeploymentOptions implements IExtensionInformation, IExtension

The SchemaDeploymentOptions type exposes the following members.

Constructors

  Name Description
Protected method SchemaDeploymentOptions Initializes a new instance of the SchemaDeploymentOptions class.

Top

Properties

  Name Description
Public property BuildtimeContributorsMustExist
Public property ComparerConfiguration Gets the selected comparer configuration.
Public property CreateNewDatabase Gets or sets a value that indicates whether to create a new target database during deployment.
Public property DropObjectsNotInSource Gets or sets a value that indicates whether to drop any objects in the target database that are not in the source database.
Public property ExcludedModelElements Gets or sets a list of model elements that the user has chosen to be excluded from the target database.
Public property ExtensionHandle Gets or sets the extension handle for this extension.
Public property SerializationData Gets or sets the XML serialized data for this object.
Public property TargetConnectionString Gets or sets the connection string for the target database.
Public property TargetDatabaseName Gets or sets the name of the target database.
Public property TreatVerificationErrorsAsWarnings Gets or sets a value that indicates whether to treat all verification errors as warnings.
Public property VerifyDeployment Gets or sets a value that indicates whether to verify the deployment after it is completed.

Top

Methods

  Name Description
Public method CreateCopy Returns a copy of these option settings.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnExtensionHandle Called when the SetExtensionHandle method is invoked.
Protected method OnInitialize Called by the deployment settings window (such as Database.sqldeployment) in Visual Studio when this class is initialized.
Public method SetExtensionHandle Sets the value of the ExtensionHandle property and calls the OnExtensionHandle method.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

A database schema provider will provide a customized subclass of this class that provides additional database-specific options. An instance of the appropriate options for the database schema provider is available from a property on the SchemaDeployment instance after it has been constructed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.Build Namespace

Other Resources

Extending the Database Features of Visual Studio