PsDac

PsDac connects DacFx and PowerShell. It gives you PowerShell Cmdlets with the power of Microsoft.SqlServer.DacFx.

View the Project on GitHub abbgrade/PsDac

Export-DacModel

SYNOPSIS

Exports a model as DacPac.

SYNTAX

Export-DacModel -Model <TSqlModel> -Path <FileInfo> [<CommonParameters>]

DESCRIPTION

Exports a TSqlModel object as DacPac file.

EXAMPLES

Example 1

PS C:\> 

PARAMETERS

-Model

Specifies the model to export.

Type: TSqlModel
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Path

Specifies the location to export the model to.

Type: FileInfo
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.SqlServer.Dac.Model.TSqlModel

OUTPUTS

System.Object

NOTES