Class DeleteOperation
operation tracking delete operations.
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.UndoRedo
Assembly: TimeCockpit.Data.dll
Syntax
public class DeleteOperation : Operation
Constructors
DeleteOperation(EntityObject)
Initializes a new instance of the DeleteOperation class.
Declaration
public DeleteOperation(EntityObject deleted)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | deleted | entityobject that was deleted. |
Properties
Deleted
Gets the entity object that was deleted.
Declaration
public EntityObject Deleted { get; }
Property Value
Type | Description |
---|---|
EntityObject |
WasNew
Gets a value indicating whether the deleted entity object was new or not.
Declaration
public bool WasNew { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Redo(ChangeTracker)
Remarks the not-deleted anymore entity object as deleted.
Declaration
public override void Redo(ChangeTracker changeTracker)
Parameters
Type | Name | Description |
---|---|---|
ChangeTracker | changeTracker | the change tracker governing the operation. |
Overrides
Undo(ChangeTracker)
marks the deleted object as not deleted, and resets the was net flag to its original state.
Declaration
public override void Undo(ChangeTracker changeTracker)
Parameters
Type | Name | Description |
---|---|---|
ChangeTracker | changeTracker | the change tracker governing the operation. |