Class TruncateTable
This command executes the TruncateTable system command
Truncates all the tables holding data for this entity, all froeign table entries linking to it are left.
Inheritance
TruncateTable
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.TruncateTable, null)]
public class TruncateTable : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
TruncateTable(IRootController, IModelLayoutCommon)
Creates a new TruncateTable command
Declaration
public TruncateTable(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
GetParameters()
Performs a Truncate Table task
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
Task<ServerTaskParameter> | A task indicating the completion of the operation |
Overrides
InternalCanExecute(object)
True
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | True |
Overrides
InternalExecuteUserWarning()
Provides a mechanism for implementing commands to issue a warning to the user before executing. Can return false to abort the execution.
Declaration
protected override Task<bool> InternalExecuteUserWarning()
Returns
Type | Description |
---|---|
Task<bool> | True to continue executing the aommand (default) |