Export (0) Print
Expand All

DacPackage Methods

The DacPackage type exposes the following members.

  Name Description
Public method Dispose Release the resources held by this instance.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member Load(Stream) Load a package from the specified Stream.
Public method Static member Load(String) Load a package file specified by fileName.
Public method Static member Load(Stream, DacSchemaModelStorageType) Loads a package from the specified Stream.
Public method Static member Load(String, DacSchemaModelStorageType) Loada a package file specified by fileName.
Public method Static member Load(Stream, DacSchemaModelStorageType, FileAccess) Load a package from the specified Stream.
Public method Static member Load(String, DacSchemaModelStorageType, FileAccess) Load a package file specified by fileName.
Public method ToString (Inherited from Object.)
Public method Unpack Place the contents of this package into the directory specified by directoryPath.
Top

  Name Description
Public Extension Method GetCollationString Gets the collation associated with the specified package. (Defined by DacExtensions.)
Public Extension Method UpdateModel 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.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft