Export (0) Print
Expand All

DacPackage Class

 

Representation of the artifact that contains the definition of a data-tier application.

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

System.Object
  Microsoft.SqlServer.Dac.DacPackage

public sealed class DacPackage : IDisposable

NameDescription
System_CAPS_pubpropertyDescription

Get an optional summary of this package.

System_CAPS_pubpropertyName

Get identifier for this package.

System_CAPS_pubpropertyPostDeploymentScript

Get stream used to read and write script executed after deploying schema contained in this package.

System_CAPS_pubpropertyPreDeploymentScript

Get stream used to read and write script executed prior to deploying schema contained in this package.

System_CAPS_pubpropertyVersion

Get version information for this package.

NameDescription
System_CAPS_pubmethodDispose()

Release the resources held by this instance.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream)

Load a package from the specified Stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream, DacSchemaModelStorageType)

Loads a package from the specified Stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream, DacSchemaModelStorageType, FileAccess)

Load a package from the specified Stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String)

Load a package file specified by fileName.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String, DacSchemaModelStorageType)

Loada a package file specified by fileName.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String, DacSchemaModelStorageType, FileAccess)

Load a package file specified by fileName.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnpack(String)

Place the contents of this package into the directory specified by directoryPath.

NameDescription
System_CAPS_pubmethodGetCollationString()

Overloaded. Gets the collation associated with the specified package. (Defined by DacExtensions.)

System_CAPS_pubmethodUpdateModel(TSqlModel, PackageMetadata)

Updates the model in a DacPackage, replacing the current model with a new one. Before updating, the model will be validated and if errors are encountered a DacServicesException will be thrown. If callers wish to block on warnings as well as errors, they must validate the model by calling Validate and checking if any errors or warnings are included in the messages returned. Note: only the model is replaced - all other artifacts such as refactor log, pre-deployment script, post-deployment script and and contributor artifacts are not altered. If any of these artifacts rely on elements that are no longer in the updated model then deployment may fail. It is the responsibility of the caller to ensure that these artifacts are consistent with the new model. The Package API can be used to update other artifacts such as the refactor log and scripts and keep them consistent with the updated model. These artifacts are stored as package parts and are identified by their URI. Package parts can be examined using GetParts. Please refer to the Package API for further information about updating package parts. (Defined by DacPackageExtensions.)

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft