LocalDbAliases.

LocalDbStartInstance(ICakeContext, string) Method

Summary

Starts the LocalDB instance. Instance must exist before you can start it.
Assembly
Cake.SqlServer.dll
Namespace
Cake.SqlServer
Containing Type
LocalDbAliases

Syntax

public static void LocalDbStartInstance(this ICakeContext context, string instanceName)

Examples

    #addin "nuget:?package=Cake.SqlServer"

    Task("Start-LocalDB")
         .Does(() =>
         {
            LocalDbStartInstance("Cake-Test");
        });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext Cake context
instanceName string Name of the instance to start

Return Value

Type Description
void