Класс DacServices

Provides operations to create and consume DAC packages represented by DacPackage instances.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Dac.DacServices

Пространство имен:  Microsoft.SqlServer.Dac
Сборка:  Microsoft.SqlServer.Dac (в Microsoft.SqlServer.Dac.dll)

Синтаксис

'Декларация
Public NotInheritable Class DacServices
'Применение
Dim instance As DacServices
public sealed class DacServices
public ref class DacServices sealed
[<SealedAttribute>]
type DacServices =  class end
public final class DacServices

Тип DacServices обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод DacServices Initializes a new instance of the DacServices class that operates against the database specified by the supplied connection string.

В начало

Методы

  Имя Описание
Открытый метод Deploy Deploys the supplied package to a database.
Открытый метод Equals (Производный от Object.)
Открытый метод ExportBacpac(Stream, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Открытый метод ExportBacpac(String, String, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Открытый метод ExportBacpac(Stream, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Открытый метод ExportBacpac(String, String, DacSchemaModelStorageType, IEnumerable<Tuple<String, String>>, Nullable<CancellationToken>) Extracts schema and export data from a database into a "bacpac" package.
Открытый метод Extract(Stream, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Открытый метод Extract(String, String, String, Version, String, IEnumerable<Tuple<String, String>>, DacExtractOptions, Nullable<CancellationToken>) Extracts the schema from a database into a package.
Открытый методСтатический элемент GenerateCreateScript(DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Открытый методСтатический элемент GenerateCreateScript(Stream, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Открытый методСтатический элемент GenerateDeployReport(DacPackage, DacPackage, String, DacDeployOptions) Creates an XML report of the steps needed to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Открытый метод GenerateDeployReport(DacPackage, String, DacDeployOptions, Nullable<CancellationToken>) Creates an XML report of the steps needed to deploy the schema of the supplied DacPackage to a database.
Открытый методСтатический элемент GenerateDeployReport(Stream, DacPackage, DacPackage, String, DacDeployOptions) Creates an XML report of the steps needed to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Открытый методСтатический элемент GenerateDeployScript(DacPackage, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Открытый метод GenerateDeployScript(DacPackage, String, DacDeployOptions, Nullable<CancellationToken>) Creates a Transact-SQL script that can be used to deploy the schema of the supplied DacPackage to a database.
Открытый методСтатический элемент GenerateDeployScript(Stream, DacPackage, DacPackage, String, DacDeployOptions) Creates a Transact-SQL script that can be used to deploy the differences between the schemas of the supplied source and target DacPackage instances to a database.
Открытый метод GenerateDriftReport(String, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Открытый метод GenerateDriftReport(String, DacSchemaModelStorageType, Nullable<CancellationToken>) Creates an XML report of the drift that has occurred since the database was last registered.
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Открытый метод ImportBacpac(BacPackage, String, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Открытый метод ImportBacpac(BacPackage, String, DacAzureDatabaseSpecification, Nullable<CancellationToken>) Deploys schema and import table data from the supplied package to a database.
Открытый метод Register(String, String, Version, String) Adds DAC registration information for the specified target database.
Открытый метод Register(String, DacSchemaModelStorageType, String, Version, String) Adds DAC registration information for the specified target database.
Открытый метод ToString (Производный от Object.)
Открытый метод Unregister Removes DAC registration information for the specified target database.

В начало

События

  Имя Описание
Открытое событие Message Invoked when an operation reports status updates or errors.
Открытое событие ProgressChanged Invoked when the state of an operation changes.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Dac