Class NewItemCommand
This command executes the New
Creates a new item of the specified entity type form the New
Inherited Members
Namespace: LemonEdge .Client.Core.Commands.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.NewItem, typeof(NewSingleCommandParam))]
public class NewItemCommand : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
NewItemCommand(IRootController, IModelLayoutCommon)
Declaration
public NewItemCommand(IRootController root, IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IRoot |
root | |
IModel |
owner |
Methods
InternalCanExecute(object)
Returns if this command can be executed or not from the client application UI
You must override Internal
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | If this command can be executed or not from the client application UI |
Overrides
InternalExecuteAsync(object)
Opens a collection item of the entity type specified from the parameter
serialized string of
the Any
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | A serialized string instance of the Any |
Returns
Type | Description |
---|---|
Task |