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, Action<Ef6DatabaseUpdateSettings> configurator)
Examples
Applies any pending migrations to the database using the ef6.exe migration tool. ('ef6 database update')
Ef6DatabaseUpdate(context, settings =>
{
settings
.FromAssembly("c:/myproject/MyProject.Data.dll")
.ForceChanges()
.SetConnectionStringName("MyDataDb")
.FromConfigurationFile("c:/myproject/app.config")
.SetMigrationsConfigurationType("MyDb.Configuration.Data.MyDbMigrationsConfiguration")
.SetVerbose()
.SetVersion()
.FromPath(@"c:/myproject");
});
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
configurator | Action |
The settings configurator. |
Return Value
Type | Description |
---|---|
void |