共用方式為


MigrateSqlServerSqlDBDatabaseInput Class

Definition

Database specific information for SQL to Azure SQL DB migration task inputs.

public class MigrateSqlServerSqlDBDatabaseInput
type MigrateSqlServerSqlDBDatabaseInput = class
Public Class MigrateSqlServerSqlDBDatabaseInput
Inheritance
MigrateSqlServerSqlDBDatabaseInput

Constructors

MigrateSqlServerSqlDBDatabaseInput()

Initializes a new instance of MigrateSqlServerSqlDBDatabaseInput.

Properties

Id

id of the database.

MakeSourceDBReadOnly

Whether to set database read only before migration.

Name

Name of the database.

SchemaSetting

Settings selected for DB schema migration.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

TableMap

Mapping of source to target tables.

TargetDatabaseName

Name of target database. Note: Target database will be truncated before starting migration.

Applies to