DotNetCoreEfContextSettings Class

graph BT Type-->Base0["DotNetCoreEfSettings"] click Base0 "/api/Cake.DotNetCoreEf/DotNetCoreEfSettings" Base0-->Base1["DotNetCoreSettings"] Type["DotNetCoreEfContextSettings"] class Type type-node Derived0["DotNetCoreEfDatabaseDropSettings"]-->Type click Derived0 "/api/Cake.DotNetCoreEf.Database/DotNetCoreEfDatabaseDropSettings" Derived1["DotNetCoreEfMigrationRemoveSettings"]-->Type click Derived1 "/api/Cake.DotNetCoreEf.Migration/DotNetCoreEfMigrationRemoveSettings"

Syntax

public class DotNetCoreEfContextSettings : DotNetCoreEfSettings

Constructors

Properties

Name Value Summary
Configuration string
The configuration to use.
Inherited from DotNetCoreEfSettings
Context string
The DbContext to use. If omitted, the default DbContext is used.
Environment string
The environment to use. If omitted, "Development" is used.
Inherited from DotNetCoreEfSettings
Force bool
Removes the last migration without checking the database. If the last migration has been applied to the database, you will need to manually reverse the changes it made
Framework string
The target framework.
Inherited from DotNetCoreEfSettings
Help bool
Show help information
Inherited from DotNetCoreEfSettings
MsBuildProjectExtensionsPath string
The MSBuild project extensions path. Defaults to "obj".
Inherited from DotNetCoreEfSettings
Project string
The project to use.
Inherited from DotNetCoreEfSettings
StartupProject string
The startup project to use.
Inherited from DotNetCoreEfSettings

Methods

Name Value Summary
SetProject(string) void
Inherited from DotNetCoreEfSettings

Extension Methods

Name Value Summary
Dump<DotNetCoreEfContextSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DotNetCoreEfContextSettings>(DotNetCoreEfContextSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DotNetCoreEfContextSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DotNetCoreEfContextSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<DotNetCoreEfContextSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DotNetCoreEfContextSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin