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
Contains settings used by
Ef6DatabaseUpdateTool
.
- Assembly
- Cake
.EntityFramework6 .dll - Namespace
- Cake
.EntityFramework6 .Database - Base Types
-
- ToolSettings
- Ef6Settings
graph BT
Type-->Base0["Ef6Settings"]
click Base0 "/api/Cake.EntityFramework6/Ef6Settings"
Base0-->Base1["ToolSettings"]
Type["Ef6DatabaseUpdateSettings"]
class Type type-node
Syntax
public class Ef6DatabaseUpdateSettings : Ef6Settings
Constructors
Name | Summary |
---|---|
Ef6 |
Initializes a new instance of the Ef6Settings class.
|
Properties
Name | Value | Summary |
---|---|---|
Assembly | FilePath |
The assembly to use.
|
Command | string |
Gets the command which should be run.
Inherited from Ef6Settings
|
ConfigurationFile | FilePath |
Specifies the configuration file to use for named connection strings.
|
ConnectionProvider | string |
Specifies the provider invariant name of the connection string.
|
ConnectionString | string |
Specifies the connection string to use. If omitted, the context's default connection will be used.
|
ConnectionStringName | string |
Specifies the name of a connection string to use from the application's configuration file.
|
DataDirectory | DirectoryPath |
The data directory.
|
Force | bool |
Specifies that data loss is acceptable during automatic migration of the database.
|
Language | string |
The language. Defaults to 'C#'.
|
Migrations |
string |
Specifies the migrations configuration (TYPE) to use. If omitted, migrations will attempt to locate a single migrations configuration type in the target project.
|
NoColor | bool |
Gets or Sets whether to colorize the output.
Inherited from Ef6Settings
|
PrefixOutput | bool |
Gets or sets whether to prefix the output level
Inherited from Ef6Settings
|
ProjectDirectory | DirectoryPath |
The project directory. Defaults to the current directory.
|
Redirect |
bool |
Gets or sets the process option to redirect standard error
Inherited from Ef6Settings
|
Redirect |
bool |
Gets or sets the process option to redirect standard output
Inherited from Ef6Settings
|
RootNamespace | string |
The root namespace. Defaults to the target assembly name.
|
Script | bool |
Generate a SQL script rather than executing the pending changes directly.
|
Source | string |
Only valid with --script. 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.
|
Target | string |
Specifies the name of a particular migration to update the database to. If omitted, the current model will be used.
|
Verbose | bool |
Gets or Sets whether to show Verbose output
Inherited from Ef6Settings
|
Version | bool |
Gets or Sets whether to show the version of Entity Framework.
Inherited from Ef6Settings
|
Methods
Name | Value | Summary |
---|---|---|
EvaluateCore |
void |
Evaluates the settings and writes them to args.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
ForceChanges |
Ef6 |
Specifies that data loss is acceptable during automatic migration of the database.
Requires the Cake.EntityFramework6 addin
|
FromAssembly |
Ef6 |
The assembly to use.
Requires the Cake.EntityFramework6 addin
|
From |
Ef6 |
Specifies the configuration file to use for named connection strings.
Requires the Cake.EntityFramework6 addin
|
FromDataDirectory |
Ef6 |
The data directory
Requires the Cake.EntityFramework6 addin
|
FromPath |
Ef6Settings |
Sets the working directory which should be used to run the ef6.exe command.
Requires the Cake.EntityFramework6 addin
|
FromProjectDirectory |
Ef6 |
The project directory. Defaults to the current directory.
Requires the Cake.EntityFramework6 addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ScriptChanges |
Ef6 |
Generate a SQL script rather than executing the pending changes directly.
Requires the Cake.EntityFramework6 addin
|
Set |
Ef6 |
Specifies the connection string to use. If omitted, the context's default connection will be used.
Requires the Cake.EntityFramework6 addin
|
SetConnectionString |
Ef6 |
Specifies the connection string to use. If omitted, the context's default connection will be used.
Requires the Cake.EntityFramework6 addin
|
Set |
Ef6 |
Specifies the name of a connection string to use from the application's configuration file.
Requires the Cake.EntityFramework6 addin
|
SetLanguage |
Ef6 |
The language. Defaults to 'C#'.
Requires the Cake.EntityFramework6 addin
|
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.
Requires the Cake.EntityFramework6 addin
|
SetNoColor |
Ef6Settings |
Sets the no color output for Entity Framework output (e.g. - Don't colorize output).
Requires the Cake.EntityFramework6 addin
|
SetPrefixOutput |
Ef6Settings |
Sets the Prefix Out with level for the e6.exe. (e.g. - Prefix output with level.).
Requires the Cake.EntityFramework6 addin
|
SetRootNamespace |
Ef6 |
The root namespace. Defaults to the target assembly name.
Requires the Cake.EntityFramework6 addin
|
SetVerbose |
Ef6Settings |
Sets the verbose output for Entity Framework output. (e.g. - Show verbose output).
Requires the Cake.EntityFramework6 addin
|
SetVersion |
Ef6Settings |
Sets the version to show for the e6.exe. (e.g. - Show version information).
Requires the Cake.EntityFramework6 addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
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.
Requires the Cake.EntityFramework6 addin
|
WithTarget |
Ef6 |
Specifies the name of a particular migration to update the database to. If omitted, the current model will be used.
Requires the Cake.EntityFramework6 addin
|