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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。