Class DeleteOperation
Represents a delete operation.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public sealed class DeleteOperation : Operation
Constructors
DeleteOperation(ModelElement, ModelElement, Model)
Initializes a new instance of the DeleteOperation class.
Declaration
public DeleteOperation(ModelElement element, ModelElement parent, Model model)
Parameters
Type | Name | Description |
---|---|---|
ModelElement | element | The ModelElement on which the operation should be performed. |
ModelElement | parent | The parent ModelElement of the ModelElement that should be deleted |
Model | model | The model on which the current delete operation was performed. |
Properties
Model
Gets or sets the model on which the current delete operation was performed.
Declaration
public Model Model { get; set; }
Property Value
Type | Description |
---|---|
Model |
Remarks
The model is needed for creating the sql drop statements. However, as both, Element and ParentElement are detached, we cannot derive the model from them. Therefore, we hold a reference to the model explicitely.
ParentElement
Gets or sets the parent name of the DeleteOperation
Declaration
public ModelElement ParentElement { get; set; }
Property Value
Type | Description |
---|---|
ModelElement |
Methods
Accept(OperationVisitor)
Accepts a visitor to dispatch by calling the corresponding visit call.
Declaration
public override void Accept(OperationVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
OperationVisitor | visitor | the visitor to accept. |