DotNetCoreEfAliases.

DotNetCoreEfMigrationAdd(ICakeContext, string, DotNetCoreEfMigrationAddSettings) Method

Summary

Add a migration for the context with project and arguments.
Assembly
Cake.DotNetCoreEf.dll
Namespace
Cake.DotNetCoreEf
Containing Type
DotNetCoreEfAliases

Syntax

public static void DotNetCoreEfMigrationAdd(this ICakeContext context, string project, DotNetCoreEfMigrationAddSettings settings)

Examples

var settings = new DotNetCoreEfMigrationAddSettings
{
    Context = SchoolContext
};

DotNetCoreEfMigrationAdd("./src/Project", settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
project string The project path.
settings DotNetCoreEfMigrationAddSettings

Return Value

Type Description
void