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.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Dac..::..DacCompilationUnit
命名空间: Microsoft.SqlServer.Management.Dac
程序集: Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)
语法
声明
Public Class DacCompilationUnit
用法
Dim instance As DacCompilationUnit
public class DacCompilationUnit
public ref class DacCompilationUnit
type DacCompilationUnit = class end
public class DacCompilationUnit
DacCompilationUnit 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
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. |
页首
属性
名称 | 说明 | |
---|---|---|
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. |
页首
方法
名称 | 说明 | |
---|---|---|
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 | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
RemoveTSqlSourceFile | Removes a Transact-SQL script file from the compilation unit. | |
ToString | (从 Object 继承。) |
页首
注释
Using the DacCompilationUnit object, you can:
Add and remove Transact-SQL command files.
Compile the DAC type with a given collation.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。