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
System.Object
TruncateTable
Implements
System.IDisposable
System.Windows.Input.ICommand
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.TruncateTable, null)]
public class TruncateTable : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
TruncateTable(IModelLayoutCommon)
Creates a new TruncateTable command
Declaration
public TruncateTable(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Methods
GetParameters()
Performs a Truncate Table task
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
System.Threading.Tasks.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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True |
Overrides
InternalExecuteUserWarning()
Declaration
protected override Task<bool> InternalExecuteUserWarning()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
Overrides
Implements
System.IDisposable
System.Windows.Input.ICommand