Click or drag to resize

WorkDataCollector Class

Class which collects work to be done for delete actions of an entity. It is used to collect work to delete entities which depend on entities which are marked for deletion by the scope. This way cascade deletes can be performed.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesWorkDataCollector

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public class WorkDataCollector

The WorkDataCollector type exposes the following members.

Constructors
  NameDescription
Public methodWorkDataCollector
Initializes a new instance of the WorkDataCollector class.
Top
Methods
  NameDescription
Public methodAdd(IEntityCollectionCore)
Adds the specified collection with entities as work to delete. All entities in the graph added which are on the FK sides of relationships are deleted. (so which are depending entities on entities also in the graph contained by toAdd)
Public methodAdd(IEntityRelation)
Adds the specified relationship as an edge to use for a cascade delete. The start entity of the relationship specified (example: CustomerEntity.Relationships.OrderEntityUsingCustomerID: CustomerEntity is the start entity) has to be the PK side. The FK side is then deleted before the PK side is deleted.
Public methodAdd(IEntityRelation, CascadeActionType)
Adds the specified relationship as an edge to use for a cascade action. The start entity of the relationship specified (example: CustomerEntity.Relationships.OrderEntityUsingCustomerID: CustomerEntity is the start entity) has to be the PK side. The FK side is then worked on when the PK side is deleted. If cascadeAction is update, the FK fields are reset before the pk side is deleted: to a default value if not nullable, or to null if nullable. If cascadeAction is delete, the FK side is deleted before the pk side is deleted
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also