Condividi tramite


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. 

Gerarchia di ereditarietà

System. . :: . .Object
  Microsoft.SqlServer.Management.Dac..::..DacCompilationUnit

Spazio dei nomi  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Sintassi

'Dichiarazione
Public Class DacCompilationUnit
'Utilizzo
Dim instance As DacCompilationUnit
public class DacCompilationUnit
public ref class DacCompilationUnit
type DacCompilationUnit =  class end
public class DacCompilationUnit

Nel tipo DacCompilationUnit sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DacCompilationUnit() () () () Initializes a new instance of the DacCompilationUnit class.
Metodo pubblico DacCompilationUnit(String, Version, String) Initializes a new instance of the DacCompilationUnit class with the specified information.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica DatabaseCollation Gets or sets the database collation used for the compile.
Proprietà pubblica Description Gets or sets the text description of the DAC type.
Proprietà pubblica MiscellaneousFiles A collection enumerating the miscellaneous files to include in the DAC type.
Proprietà pubblica TargetSelectionPolicy Gets or sets the server selection policy to compile into the DAC type.
Proprietà pubblica TypeName Gets or sets the name of the DAC type.
Proprietà pubblica Version Gets or sets the version of the DAC type.

In alto

Metodi

  Nome Descrizione
Metodo pubblico AddTSqlSourceFile Adds a Transact-SQL script file to the compilation unit.
Metodo pubblico Compile Compiles a DAC type based on the Transact-SQL scripts, server selection policy, and miscellaneous files specified for the DacCompilationUnit object.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico RemoveTSqlSourceFile Removes a Transact-SQL script file from the compilation unit.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

Using the DacCompilationUnit object, you can:

  • Add and remove Transact-SQL command files.

  • Compile the DAC type with a given collation.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.