Class CreateMigrationAndRunMigratorCommand
Inheritance
object
CreateMigrationAndRunMigratorCommand
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Cli.Commands
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class CreateMigrationAndRunMigratorCommand : IConsoleCommand, ITransientDependency
Constructors
CreateMigrationAndRunMigratorCommand(ICmdHelper, InitialMigrationCreator, DotnetEfToolManager)
Declaration
public CreateMigrationAndRunMigratorCommand(ICmdHelper cmdHelper, InitialMigrationCreator initialMigrationCreator, DotnetEfToolManager dotnetEfToolManager)
Parameters
| Type | Name | Description |
|---|---|---|
| ICmdHelper | cmdHelper | |
| InitialMigrationCreator | initialMigrationCreator | |
| DotnetEfToolManager | dotnetEfToolManager |
Fields
Name
Declaration
public const string Name = "create-migration-and-run-migrator"
Field Value
| Type | Description |
|---|---|
| string |
Properties
CmdHelper
Declaration
public ICmdHelper CmdHelper { get; }
Property Value
| Type | Description |
|---|---|
| ICmdHelper |
DotnetEfToolManager
Declaration
public DotnetEfToolManager DotnetEfToolManager { get; }
Property Value
| Type | Description |
|---|---|
| DotnetEfToolManager |
Logger
Declaration
public ILogger<CreateMigrationAndRunMigratorCommand> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger<TCategoryName><CreateMigrationAndRunMigratorCommand> |
Methods
ExecuteAsync(CommandLineArgs)
Declaration
public virtual Task ExecuteAsync(CommandLineArgs commandLineArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandLineArgs | commandLineArgs |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
GetShortDescription()
Declaration
public string GetShortDescription()
Returns
| Type | Description |
|---|---|
| string |
GetUsageInfo()
Declaration
public string GetUsageInfo()
Returns
| Type | Description |
|---|---|
| string |