Export (0) Print
Expand All

DacStore Class

The root class of the DAC Domain. The Main role of this class is to store the connection and interact with the SFC framework for most of the services.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

public class DacStore : DacDomain

The DacStore type exposes the following members.

  NameDescription
Public methodDacStoreInitializes a new instance of the DacStore class connected to the specified instance of the Database Engine.
Top

  NameDescription
Protected propertyAbstractIdentityKeyDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public propertyDacInstancesGets a DacInstanceCollection object that enumerates the DAC instances deployed or registered on an instance of the Database Engine. (Inherited from DacDomain.)
Public propertyDacStoreGets the DacStore object associated with this DacDomain object. (Inherited from DacDomain.)
Public propertyMetadataReturns metadata about the instance and its domain. (Inherited from SfcInstance.)
Public propertyNameGets a String value with the name of the instance of the Database Engine to which the DAC domain is connected. (Inherited from DacDomain.)
Public propertyParentGets or sets the instance parent via the keychain. (Inherited from SfcInstance.)
Public propertyPropertiesReturns a collection instance properties. (Inherited from SfcInstance.)
Protected propertyPropertyStorageProviderDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public propertyServerConnectionGets server connection information.
Public propertySqlStoreConnectionGets or sets the connection to the instance of SQL Server. (Overrides DacDomain.SqlStoreConnection.)
Protected propertyStateReturns the state of the SfcInstance object. (Inherited from SfcInstance.)
Public propertyUrnReturns the uniform resource name of the SfcInstance object. (Inherited from SfcInstance.)
Top

  NameDescription
Protected methodAlterImplDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodCheckObjectCreatedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodCheckObjectStateDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodCreateIdentityKeyCreates a SfcKey object for the DAC domain. (Inherited from DacDomain.)
Protected methodCreateImplDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodDiscoverDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodDropImplDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodEquals (Inherited from Object.)
Public methodExport(String, Stream)Exports a DAC object with specified database name and stream.
Public methodExport(String, String)Exports a DAC object with specified database name and path.
Public methodExport(String, Stream, IEnumerable<TableName>)Exports a DAC object with specified database name, stream, and tables.
Protected methodFinalize (Inherited from Object.)
Protected methodGetChildCollectionIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed. Returns a ISfcCollection object. (Inherited from DacDomain.)
Public methodGetDatabaseChangesGets the changes made to the specified database.
Public methodGetDomainDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetIncrementalUpgradeScriptGets the script used in the DAC incremental upgrade.
Public methodGetPropertySetReturns the set of properties for the SfcInstance object. (Inherited from SfcInstance.)
Public methodGetType (Inherited from Object.)
Protected methodGetTypeMetadataImplIndicates the domains that override by returning the right TypeMetadata class directly. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodImport(Stream)Imports a DAC object with specified stream.
Public methodImport(Stream, DatabaseDeploymentProperties, Boolean)Imports a DAC object with specified stream, deployment properties, and validation.
Public methodImport(String, DatabaseDeploymentProperties, Boolean)Imports a DAC object with specified deployment properties, path, and validation.
Public methodIncrementalUpgradeDisplays the DAC incremental upgrade.
Protected methodInitializeUIPropertyStateDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodInstall(DacType)Uses the specified DacType object to create a DAC instance in the instance of the Database Engine represented by the DacStore object.
Public methodInstall(DacType, DatabaseDeploymentProperties, Boolean)Uses the specified DacType object to create a DAC instance in the instance of the Database Engine represented by the DacStore object.
Protected methodMarkForDropImplReturns a value that indicates the existing objects to be dropped. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodMarkRootAsConnectedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMoveImplIndicates the new parent object to move in an instance. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodOnPropertyMetadataChangesInvoked whenever the effective value of any SfcInstance metadata is updated. (Inherited from SfcInstance.)
Protected methodOnPropertyValueChangesInvoked whenever the effective value of any SfcInstance property is updated. (Inherited from SfcInstance.)
Protected methodPostAlterDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodPostCreateIndicates the default implementor that creates the execution result. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodPostDropDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodPostMoveDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodPostRenameDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodRefreshRefreshes the object's properties by reading them from the server. (Inherited from SfcInstance.)
Protected methodRenameImplDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodResetKeyDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public methodSerializeSerializes the instance to XML. (Inherited from SfcInstance.)
Public methodToStringReturns a string representation of the instance Urn. (Inherited from SfcInstance.)
Public methodUninstallDeletes the specified DAC instance from the instance of the Database Engine associated with the DacStore.
Public methodUnmanageDeletes the a DAC instance without affecting the database associated with the instance.
Protected methodUpdateUIPropertyStateDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Protected methodValidateIndicates the basic child object's validation. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Top

  NameDescription
Public eventDacActionFinishedReturns events as they are completed from the DacStore Install(), Uninstall(), and Upgrade() methods.
Public eventDacActionInitializedReturns events as they are initialized to pending status from the DacStore Install(), Uninstall(), and Upgrade() methods.
Public eventDacActionStartedReturns events as they start running for the DacStore Install(), Uninstall(), and Upgrade() methods.
Protected eventpropertyChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public eventPropertyChangedCLS-compliant event for property changes. (Inherited from SfcInstance.)
Protected eventpropertyMetadataChangedDo not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcInstance.)
Public eventPropertyMetadataChangedCLS-compliant event for property metadata changes. (Inherited from SfcInstance.)
Top

  NameDescription
Explicit interface implemetationPrivate methodISfcDomain.GetExecutionEngineReturns an ISfcExecutionEngine object that specifies an instance of the Database Engine for running scripts. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcDomain.GetKeyGets a SfcKey object that represents the DAC domain. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcDomain.GetTypeGets a Type object describing the Sfc type with the specified name within the Sfc domain. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcDomain.GetTypeMetadata Obsolete. Gets the metadata for the specified SFC type. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcDomain.UseSfcStateManagementSpecifies whether to use the state management provided by the Microsoft.SqlServer.Management.Sdk.Sfc namespace. (Inherited from DacDomain.)
Explicit interface implemetationPrivate propertyISfcDomainLite.DomainInstanceNameGets the specified instance name of the domain. (Inherited from DacDomain.)
Explicit interface implemetationPrivate propertyISfcDomainLite.DomainNameGets the specified name of the domain. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcDomainLite.GetLogicalVersionGets a logical version number that represents the level of changes to the object model in the SFC domain. (Inherited from DacDomain.)
Explicit interface implemetationPrivate propertyISfcHasConnection.ConnectionContextGets the specified context for the connection. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcHasConnection.GetConnection()Gets a connection to the instance of the Database Engine serving as a backing store. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcHasConnection.GetConnection(SfcObjectQueryMode)Gets a connection to the instance of the Database Engine serving as a backing store that supports the specified query processing mode. (Inherited from DacDomain.)
Explicit interface implemetationPrivate methodISfcHasConnection.SetConnectionSets the active connection for the domain root. (Inherited from DacDomain.)
Top

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.

NoteNote

The DacStore class implements ISfcDomain, which specifies the connection point to any object domain defined using the Microsoft.SqlServer.Management.Sdk.Sfc namespace.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft