DacAliases Class

Summary

Contains functionality to deal with DAC functionality from SQL Server: create and restore BACPAC files; create and restore DACPAC files
Assembly
Cake.SqlServer.dll
Namespace
Cake.SqlServer
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["DacAliases"] class Type type-node

Syntax

public static class DacAliases

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
CreateBacpacFile(ICakeContext, string, string, FilePath) void
Creates a bacpac file for easy database backuping.
static
ExtractDacpacFile(ICakeContext, string, string, ExtractDacpacSettings) void
Extracts a dacpac file to a database package.
static
PublishDacpacFile(ICakeContext, string, string, FilePath, PublishDacpacSettings) void
Publish a dacpac file to a database.
static
RestoreBacpac(ICakeContext, string, string, FilePath) void
Restores a bacpac file into a database.

NB: there must be no database with the name you provide. Otherwise exception will be thrown.

static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin