Class GenerateCode
This command executes the CodeGeneration system command
Loads a .net 5 specified dll created against the LemonEdge API and creates the associated entity code for each EntityDefinitionAttribute interface found in the dll
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.CodeGeneration, null)]
public class GenerateCode : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
GenerateCode(IRootController, IModelLayoutCommon)
Creates a new GenerateCode command
Declaration
public GenerateCode(IRootController root, IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecute(object)
True - Can always execute
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | True |
Overrides
InternalExecuteAsync(object)
Prompts the user for a .net dll they have created against the LemonEdge API and generates c# code for all the interface entities, and complex types found within it.
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |