LocalDbAliases.

LocalDbCreateInstance(ICakeContext, string) Method

Summary

Creates a server instance and starts the server. The version number defaults to the version of the SqlLocalDB utility
Assembly
Cake.SqlServer.dll
Namespace
Cake.SqlServer
Containing Type
LocalDbAliases

Syntax

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

Examples

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

    Task("Create-LocalDB")
         .Does(() =>
         {
            LocalDbCreateInstance("Cake-Test");
        });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

Type Description
void