EfCoreDatabaseUpdateSettings Class

Summary

Contains settings used by EfCoreDatabaseUpdateTool.
Assembly
Cake.EntityFrameworkCore.dll
Namespace
Cake.EntityFrameworkCore.Database
Base Types
graph BT Type-->Base0["EfCoreToolSettings"] click Base0 "/api/Cake.EntityFrameworkCore/EfCoreToolSettings" Base0-->Base1["DotNetCoreSettings"] Type["EfCoreDatabaseUpdateSettings"] class Type type-node

Syntax

public class EfCoreDatabaseUpdateSettings : EfCoreToolSettings

Constructors

Properties

Name Value Summary
DbContextClassName string
Class name for the DbContext that controls the migrations to deploy
Inherited from EfCoreToolSettings
Migration string
The target migration. If '0', all migrations will be reverted. Defaults to the last migration.
MigrationDll string
Filename of the DLL that contains your migrations.
Inherited from EfCoreToolSettings
MigrationsNamespace string
.NET namespace for the DbContext class. 'Benday.Demo123.Api.dll
Inherited from EfCoreToolSettings
NoColor bool
Gets or Sets whether to colorize the output.
Inherited from EfCoreToolSettings
PrefixOutput bool
Prefix output with level.
Inherited from EfCoreToolSettings
StartupDll string
Filename of the DLL that is the startup DLL for this published application
Inherited from EfCoreToolSettings
Verbose bool
Gets or Sets whether to show Verbose output
Inherited from EfCoreToolSettings
Version bool
Gets or Sets whether to show the version of Entity Framework.
Inherited from EfCoreToolSettings

Extension Methods

Name Value Summary
Dump<EfCoreDatabaseUpdateSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
FromPath<EfCoreDatabaseUpdateSettings>(DirectoryPath) T
Sets the working directory which should be used to run the ef.dll command.
Requires the Cake.EntityFrameworkCore addin
IsIn<EfCoreDatabaseUpdateSettings>(EfCoreDatabaseUpdateSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<EfCoreDatabaseUpdateSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<EfCoreDatabaseUpdateSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
SetDbContextClass<EfCoreDatabaseUpdateSettings>(string) T
Requires the Cake.EntityFrameworkCore addin
SetMigrationsDll<EfCoreDatabaseUpdateSettings>(string) T
Requires the Cake.EntityFrameworkCore addin
SetMigrationsNamespace<EfCoreDatabaseUpdateSettings>(string) T
Requires the Cake.EntityFrameworkCore addin
SetNoColor<EfCoreDatabaseUpdateSettings>() T
Sets the no color output for Entity Framework output (e.g. - Don't colorize output).
Requires the Cake.EntityFrameworkCore addin
SetPrefixOutput<EfCoreDatabaseUpdateSettings>() T
Sets the Prefix Out with level for the ef.dll. (e.g. - Prefix output with level.).
Requires the Cake.EntityFrameworkCore addin
SetStartupDll<EfCoreDatabaseUpdateSettings>(string) T
Requires the Cake.EntityFrameworkCore addin
SetTargetMigration(string) EfCoreDatabaseUpdateSettings
Sets a named target migration to migrate the database too.
Requires the Cake.EntityFrameworkCore addin
SetVerbose<EfCoreDatabaseUpdateSettings>() T
Sets the verbose output for Entity Framework output. (e.g. - Show verbose output).
Requires the Cake.EntityFrameworkCore addin
SetVersion<EfCoreDatabaseUpdateSettings>() T
Sets the to display version information in console output
Requires the Cake.EntityFrameworkCore addin
ThrowIfNull<EfCoreDatabaseUpdateSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<EfCoreDatabaseUpdateSettings>(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
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin