Class DeleteOperation
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Represents a delete operation.
public sealed class DeleteOperation : Operation
- Inheritance
-
ObjectDeleteOperation
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
DeleteOperation(ModelElement, ModelElement, Model)
Initializes a new instance of the DeleteOperation class.
public DeleteOperation(ModelElement element, ModelElement parent, Model model)
Parameters
elementModelElementThe ModelElement on which the operation should be performed.
parentModelElementThe parent ModelElement of the ModelElement that should be deleted
modelModelThe model on which the current delete operation was performed.
Properties
Model
Gets or sets the model on which the current delete operation was performed.
public Model Model { get; set; }
Property Value
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
public ModelElement ParentElement { get; set; }
Property Value
Methods
Accept(OperationVisitor)
Accepts a visitor to dispatch by calling the corresponding visit call.
public override void Accept(OperationVisitor visitor)
Parameters
visitorOperationVisitorthe visitor to accept.