Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Commands Inheritance: System.Object

Syntax

CloudNimble.EasyAF.Tools.Commands.CodeGenerateCommand

Summary

Represents a command for generating code for a specified EasyAF component.

Remarks

This command is used within the EasyAF tooling to automate the generation of code for various components, such as business logic, core libraries, data access, APIs, or all components at once.

Examples

dotnet easyaf generate business -path "C:\Projects\MyApp" -dontdelete "Controllers\Public" -notpublic "User,Role"

Constructors

.ctor

Syntax

public CodeGenerateCommand()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Component

Gets or sets the component to generate. Available options: business, core, data, api, simplemessagebus, all.

Syntax

public string Component { get; set; }

Property Value

Type: string

DontDelete

Gets or sets a directory that will be ignored when deleting files during code generation.

Syntax

public string DontDelete { get; set; }

Property Value

Type: string

NotPublic

Gets or sets a comma-separated list of table names to ignore when generating the public API surface.

Syntax

public string NotPublic { get; set; }

Property Value

Type: string

Root

Gets or sets the working directory for the code compiler. Defaults to the current directory if not specified.

Syntax

public string Root { get; set; }

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

OnExecuteAsync

Executes the code generation command asynchronously.

Syntax

public System.Threading.Tasks.Task<int> OnExecuteAsync()

Returns

Type: System.Threading.Tasks.Task<int> A Task`1 representing the asynchronous operation, with a result of 0 on success.

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?