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
Extensions for
Ef6DatabaseUpdateSettings
.
- Assembly
- Cake
.EntityFramework6 .dll - Namespace
- Cake
.EntityFramework6 .Database - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Ef6DatabaseUpdateExtensions"]
class Type type-node
Syntax
public static class Ef6DatabaseUpdateExtensions
Methods
Name | Value | Summary |
---|---|---|
ForceChanges |
Ef6 |
Specifies that data loss is acceptable during automatic migration of the database.
static
|
FromAssembly |
Ef6 |
The assembly to use.
static
|
From |
Ef6 |
Specifies the configuration file to use for named connection strings.
static
|
FromDataDirectory |
Ef6 |
The data directory
static
|
FromProjectDirectory |
Ef6 |
The project directory. Defaults to the current directory.
static
|
ScriptChanges |
Ef6 |
Generate a SQL script rather than executing the pending changes directly.
static
|
Set |
Ef6 |
Specifies the connection string to use. If omitted, the context's default connection will be used.
static
|
SetConnectionString |
Ef6 |
Specifies the connection string to use. If omitted, the context's default connection will be used.
static
|
Set |
Ef6 |
Specifies the name of a connection string to use from the application's configuration file.
static
|
SetLanguage |
Ef6 |
The language. Defaults to 'C#'.
static
|
Set |
Ef6 |
Specifies the migrations configuration (TYPE) to use. If omitted, migrations will attempt to locate a single migrations configuration type in the target project.
static
|
SetRootNamespace |
Ef6 |
The root namespace. Defaults to the target assembly name.
static
|
WithSource |
Ef6 |
Specifies the name of a particular migration to use as the update's starting point. If omitted, the last applied migration in the database will be used.
static
|
WithTarget |
Ef6 |
Specifies the name of a particular migration to update the database to. If omitted, the current model will be used.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|