Classe DacCompilationUnit
The DacCompilationUnit accepts Transact-SQL content and compiles it into a data-tier application (DAC) type. Any Transact-SQL file can be added or removed prior to compilation.
Hierarquia de herança
System. . :: . .Object
Microsoft.SqlServer.Management.Dac..::..DacCompilationUnit
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (em Microsoft.SqlServer.Management.Dac.dll)
Sintaxe
'Declaração
Public Class DacCompilationUnit
'Uso
Dim instance As DacCompilationUnit
public class DacCompilationUnit
public ref class DacCompilationUnit
type DacCompilationUnit = class end
public class DacCompilationUnit
O tipo DacCompilationUnit expõe os membros a seguir.
Construtores
| Nome | Descrição | |
|---|---|---|
![]() |
DacCompilationUnit() () () () | Initializes a new instance of the DacCompilationUnit class. |
![]() |
DacCompilationUnit(String, Version, String) | Initializes a new instance of the DacCompilationUnit class with the specified information. |
Início
Propriedades
| Nome | Descrição | |
|---|---|---|
![]() |
DatabaseCollation | Gets or sets the database collation used for the compile. |
![]() |
Description | Gets or sets the text description of the DAC type. |
![]() |
MiscellaneousFiles | A collection enumerating the miscellaneous files to include in the DAC type. |
![]() |
TargetSelectionPolicy | Gets or sets the server selection policy to compile into the DAC type. |
![]() |
TypeName | Gets or sets the name of the DAC type. |
![]() |
Version | Gets or sets the version of the DAC type. |
Início
Métodos
| Nome | Descrição | |
|---|---|---|
![]() |
AddTSqlSourceFile | Adds a Transact-SQL script file to the compilation unit. |
![]() |
Compile | Compiles a DAC type based on the Transact-SQL scripts, server selection policy, and miscellaneous files specified for the DacCompilationUnit object. |
![]() |
Equals | (Herdado de Object.) |
![]() |
Finalize | (Herdado de Object.) |
![]() |
GetHashCode | (Herdado de Object.) |
![]() |
GetType | (Herdado de Object.) |
![]() |
MemberwiseClone | (Herdado de Object.) |
![]() |
RemoveTSqlSourceFile | Removes a Transact-SQL script file from the compilation unit. |
![]() |
ToString | (Herdado de Object.) |
Início
Comentários
Using the DacCompilationUnit object, you can:
Add and remove Transact-SQL command files.
Compile the DAC type with a given collation.
Thread Safety
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
.gif)
.gif)
.gif)