Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DacPackageExtensions.BuildPackage Method (String, TSqlModel, PackageMetadata)

Creates a package with the specified TSqlModel and saves it to the specified location.

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
)

Parameters

packageFilePath
Type: String
The path to the package file.
model
Type: Microsoft.SqlServer.Dac.Model.TSqlModel
The TSqlModel representing the model to save into the package.
packageMetadata
Type: Microsoft.SqlServer.Dac.PackageMetadata
The metadata information that describes the package.

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

Show:
© 2015 Microsoft