Definition
Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Commands Inheritance: CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Summary
Command for setting up local development environment for existing EasyAF projects.Constructors
.ctor
Initializes a new instance of the SetupCommand class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
configManager | CloudNimble.EasyAF.EFCoreToEdmx.EdmxConfigManager | The configuration manager service. |
.ctor Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
.ctor Inherited
Inherited from
objectSyntax
Properties
ConnectionString
Gets or sets the connection string to store locally.Syntax
Property Value
Type:string
ContextName
Gets or sets the DbContext class name to configure.Syntax
Property Value
Type:string
DryRun
Gets or sets a value indicating whether to show what would be configured without making changes.Syntax
Property Value
Type:bool
SolutionFolder
Gets or sets the working directory for the solution. Defaults to current directory.Syntax
Property Value
Type:string
Methods
CheckMSBuildRegistered Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
ConfigureDirectoryBuildProps Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
commonNamespace | string | The common namespace to set. |
userSecretsId | string | The UserSecretsId to set. |
projectFiles | string[] | Array of project file paths. |
ConfigureProjectTypes Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
userSecretsId | string | The UserSecretsId to set in Directory.Build.props. |
DetectCommonNamespace Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
projectFiles | string[] | Array of project file paths. |
Returns
Type:string
The detected common namespace, or null if none found.
DetermineProjectType Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
projectFilePath | string | The path to the project file. |
Returns
Type:string
The determined project type, or null if no supported type is detected.
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ExtractUserSecretsId Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
projectFilePath | string | The path to the project file. |
Returns
Type:string
The UserSecretsId if found, otherwise null.
ExtractUserSecretsIdFromDataProject Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
dataFolder | string | The data project folder path. |
Returns
Type:string
The UserSecretsId if found, otherwise null.
ExtractUserSecretsIdFromDirectoryBuildProps Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Returns
Type:string
The UserSecretsId if found, otherwise null.
FindCommonPrefix Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
strings | System.Collections.Generic.List<string> | The list of strings to find common prefix for. |
Returns
Type:string
The common prefix.
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
OnExecuteAsync
Executes the setup command.Syntax
Returns
Type:System.Threading.Tasks.Task<int>
Exit code.
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
SetProjectType Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
projectFilePath | string | The path to the project file. |
projectType | string | The project type to set. |
SetUserSecretAsync Inherited
Inherited from
CloudNimble.EasyAF.Tools.Commands.EasyAFBaseCommandSyntax
Parameters
| Name | Type | Description |
|---|---|---|
userSecretsId | string | The user secrets ID. |
key | string | The secret key. |
value | string | The secret value. |
projectPath | string | The project directory path. |
Returns
Type:System.Threading.Tasks.Task
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?