Export (0) Print
Expand All

DacPackageExtensions.BuildPackage Method (String, TSqlModel, PackageMetadata, PackageOptions)

Creates a package with the specified TSqlModel and saves it to the specified location. In addition to the TSqlModel, other artifacts such as refactor log and deployment contributors can be specified in packageOptions.

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

public static void BuildPackage(
	string packageFilePath,
	TSqlModel model,
	PackageMetadata packageMetadata,
	PackageOptions packageOptions
)

Parameters

packageFilePath
Type: String
Path to the package file.
model
Type: Microsoft.SqlServer.Dac.Model.TSqlModel
TSqlModel representing the model to save into the package.
packageMetadata
Type: Microsoft.SqlServer.Dac.PackageMetadata
Metadata information that describes the package.
packageOptions
Type: Microsoft.SqlServer.Dac.PackageOptions
PackageOptions defining advanced options and additional artifacts.

ExceptionCondition
DacServicesException

If there are any errors during package serialization, including errors validating the model.

ArgumentNullException

If the packageFilePath or model parameters are null.

Community Additions

ADD
Show:
© 2014 Microsoft