Table of Contents

Class DeleteOperation

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents a delete operation.

public sealed class DeleteOperation : Operation
Inheritance
Object
DeleteOperation
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

element ModelElement

The ModelElement on which the operation should be performed.

parent ModelElement

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.

public Model Model { get; set; }

Property Value

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

public ModelElement ParentElement { get; set; }

Property Value

ModelElement

Methods

Accept(OperationVisitor)

Accepts a visitor to dispatch by calling the corresponding visit call.

public override void Accept(OperationVisitor visitor)

Parameters

visitor OperationVisitor

the visitor to accept.