LocalDbAliases.

LocalDbStopInstance(ICakeContext, string) Method

Summary

Stops the LocalDB instance.
Assembly
Cake.SqlServer.dll
Namespace
Cake.SqlServer
Containing Type
LocalDbAliases

Syntax

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

Examples

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

    Task("Stop-LocalDB")
         .Does(() =>
         {
            LocalDbStopInstance("Cake-Test");
        });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
void