DacStore 类
DacStore 类型是 DAC 对象模型的根。它是 DAC 实例集合的根。
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
Microsoft.SqlServer.Management.Dac. . :: . .DacDomain
Microsoft.SqlServer.Management.Dac..::..DacStore
命名空间: Microsoft.SqlServer.Management.Dac
程序集: Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)
语法
声明
Public Class DacStore _
Inherits DacDomain
用法
Dim instance As DacStore
public class DacStore : DacDomain
public ref class DacStore : public DacDomain
type DacStore =
class
inherit DacDomain
end
public class DacStore extends DacDomain
DacStore 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
DacStore(ServerConnection) | 初始化连接到数据库引擎的指定实例的 DacStore 类的新实例。 | |
DacStore(SfcConnection) | 已过时。初始化连接到数据库引擎的指定实例的 DacStore 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
AbstractIdentityKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
DacInstances | Gets a DacInstanceCollection object that enumerates the DAC instances deployed or registered on an instance of the Database Engine. (从 DacDomain 继承。) | |
DacStore | Gets the DacStore object associated with this DacDomain object. (从 DacDomain 继承。) | |
Metadata | Returns metadata about the instance and its domain. (从 SfcInstance 继承。) | |
Name | Gets a String value with the name of the instance of the Database Engine to which the DAC domain is connected. (从 DacDomain 继承。) | |
Parent | Gets or sets the instance parent via the keychain. (从 SfcInstance 继承。) | |
Properties | Returns a collection instance properties. (从 SfcInstance 继承。) | |
PropertyStorageProvider | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
ServerConnection | 获取服务器连接信息。 | |
SqlStoreConnection | 获取或设置到 SQL Server 实例的连接。 (覆盖 DacDomain. . :: . .SqlStoreConnection。) | |
State | Returns the state of the SfcInstance object. (从 SfcInstance 继承。) | |
Urn | Returns the uniform resource name of the SfcInstance object. (从 SfcInstance 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
AlterImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CheckObjectCreated | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CheckObjectState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
CreateIdentityKey | Creates a SfcKey object for the DAC domain. (从 DacDomain 继承。) | |
CreateImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Discover | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
DropImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetChildCollection | 标识为仅供参考。不提供支持。不保证以后的兼容性。 Returns a ISfcCollection object. (从 DacDomain 继承。) | |
GetDatabaseChanges | 获取有关导致偏差的任何数据库更改的信息。当在 DAC 部署和升级过程之外更改某一数据库时,将发生偏差。 | |
GetDomain | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetIncrementalUpgradeScript | 返回使用新的 DAC 类型升级当前数据库所需的增量脚本。来自数据库和新的 DAC 类型的更改将会有效转换为等效的 Transact-SQL。 | |
GetPropertySet | Returns the set of properties for the SfcInstance object. (从 SfcInstance 继承。) | |
GetType | (从 Object 继承。) | |
GetTypeMetadataImpl | Indicates the domains that override by returning the right TypeMetadata class directly. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
IncrementalUpgrade | 以增量方式使用新的 DAC 类型升级当前 DAC 实例。来自当前 DAC 实例和新的 DAC 类型的更改将会有效转换为等效的 Transact-SQL 并被执行以实现就地升级。 | |
InitializeUIPropertyState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Install(DacType) | 使用指定的 DacType 对象在由 DacStore 对象表示的数据库引擎实例中创建 DAC 实例。 | |
Install(DacType, DatabaseDeploymentProperties, Boolean) | 使用指定的 DacType 对象在由 DacStore 对象表示的数据库引擎实例中创建 DAC 实例。 | |
MarkForDropImpl | Returns a value that indicates the existing objects to be dropped. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
MarkRootAsConnected | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
MoveImpl | Indicates the new parent object to move in an instance. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
OnPropertyMetadataChanges | Invoked whenever the effective value of any SfcInstance metadata is updated. (从 SfcInstance 继承。) | |
OnPropertyValueChanges | Invoked whenever the effective value of any SfcInstance property is updated. (从 SfcInstance 继承。) | |
PostAlter | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostCreate | Indicates the default implementor that creates the execution result. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostDrop | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostMove | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PostRename | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Refresh | Refreshes the object's properties by reading them from the server. (从 SfcInstance 继承。) | |
RenameImpl | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
ResetKey | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Serialize | Serializes the instance to XML. (从 SfcInstance 继承。) | |
ToString | Returns a string representation of the instance Urn. (从 SfcInstance 继承。) | |
Uninstall | 从与 DacStore 关联的数据库引擎实例中删除指定的 DAC 实例。 | |
Unmanage | 删除 DAC 实例,而不影响与该实例关联的数据库。 | |
UpdateUIPropertyState | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
Upgrade | 已过时。将 DAC 实例的 DAC 类型升级到从 DAC 包提取的指定 DAC 类型的版本。 | |
Validate | Indicates the basic child object's validation. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
DacActionFinished | 从 DacStore Install()、Uninstall() 和 Upgrade() 方法中完成事件时返回事件。 | |
DacActionInitialized | 事件从 DacStore Install()、Uninstall() 和 Upgrade() 方法初始化为挂起状态时返回事件。 | |
DacActionStarted | 开始为 DacStore Install()、Uninstall() 和 Upgrade() 方法运行事件时返回事件。 | |
propertyChanged | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PropertyChanged | CLS-compliant event for property changes. (从 SfcInstance 继承。) | |
propertyMetadataChanged | 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (从 SfcInstance 继承。) | |
PropertyMetadataChanged | CLS-compliant event for property metadata changes. (从 SfcInstance 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
ISfcDomain. . :: . .GetExecutionEngine | Returns an ISfcExecutionEngine object that specifies an instance of the Database Engine for running scripts. (从 DacDomain 继承。) | |
ISfcDomain. . :: . .GetKey | Gets a SfcKey object that represents the DAC domain. (从 DacDomain 继承。) | |
ISfcDomain. . :: . .GetType | Gets a Type object describing the Sfc type with the specified name within the Sfc domain. (从 DacDomain 继承。) | |
ISfcDomain. . :: . .GetTypeMetadata | 已过时。Gets the metadata for the specified SFC type. (从 DacDomain 继承。) | |
ISfcDomain. . :: . .UseSfcStateManagement | Specifies whether to use the state management provided by the Microsoft.SqlServer.Management.Sdk.Sfc namespace. (从 DacDomain 继承。) | |
ISfcDomainLite. . :: . .DomainInstanceName | Gets the specified instance name of the domain. (从 DacDomain 继承。) | |
ISfcDomainLite. . :: . .DomainName | Gets the specified name of the domain. (从 DacDomain 继承。) | |
ISfcDomainLite. . :: . .GetLogicalVersion | Gets a logical version number that represents the level of changes to the object model in the SFC domain. (从 DacDomain 继承。) | |
ISfcHasConnection. . :: . .ConnectionContext | Gets the specified context for the connection. (从 DacDomain 继承。) | |
ISfcHasConnection. . :: . .GetConnection() () () () | Gets a connection to the instance of the Database Engine serving as a backing store. (从 DacDomain 继承。) | |
ISfcHasConnection. . :: . .GetConnection(SfcObjectQueryMode) | Gets a connection to the instance of the Database Engine serving as a backing store that supports the specified query processing mode. (从 DacDomain 继承。) | |
ISfcHasConnection. . :: . .SetConnection | Sets the active connection for the domain root. (从 DacDomain 继承。) |
页首
注释
Using the DacStore object, you can:
Connect to an instance of the Database Engine.
Access the collection of DacInstance objects that are immediate children of the DacStore object. The collection represents the set of DAC instances available on the instance of the Database Engine.
Request create, read, update, and delete (CRUD) operations for every type in the object model.
注意 |
---|
The DacStore class implements ISfcDomain, which specifies the connection point to any object domain defined using the Microsoft.SqlServer.Management.Sdk.Sfc namespace. |
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。