This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.EntityFramework6.
Summary
Applies any pending migrations to the database using the ef6.exe migration tool.
- Assembly
- Cake
.EntityFramework6 .dll - Namespace
- Cake
.EntityFramework6 - Containing Type
- E
F6 Database Update Aliases
Syntax
public static void Ef6DatabaseUpdate(this ICakeContext context, Ef6DatabaseUpdateSettings settings)
Examples
Applies any pending migrations to the database using the ef6.exe migration tool. ('ef6 database update')
var settings = new Ef6DatabaseUpdateSettings
{
WorkingDirectory = @"c:/myproject",
Assembly = "c:/myproject/MyProject.Data.dll",
Force = true,
ConnectionStringName = "MyDataDb",
ConfigurationFile = "c:/myproject/app.config",
MigrationsConfigurationType = "MyDb.Configuration.Data.MyDbMigrationsConfiguration",
Verbose = true,
Version = true
};
Ef6DatabaseUpdate(settings);
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
settings | Ef6 |
The settings. |
Return Value
Type | Description |
---|---|
void |