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 EntityDefinition interface found in the dll
Implements
System.Windows.Input.ICommand
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Commands
Assembly: ClientCore.dll
Syntax
[CommandDescriptorOptions(Commands.CodeGeneration, null)]
public class GenerateCode : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
GenerateCode(IModelLayoutCommon)
Creates a new GenerateCode command
Declaration
public GenerateCode(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
Implements
System.Windows.Input.ICommand
System.IDisposable