C# Class TransactionalNodeService.Common.TransactionOperations.DeleteRelationship

Inheritance: ITransactionOperation
Afficher le fichier Open project: chris-tomich/Glyma Class Usage Examples

Méthodes publiques

Méthode Description
DeleteRelationship ( MapParameters sessionMapParameters ) : System
ExecuteTransaction ( IDbConnectionAbstraction connectionAbstraction, MapTransactionWrapper transactionWrapper, MapResponse &response ) : void

Méthodes protégées

Méthode Description
SelectDeleteRelationshipDescriptorsMetadataCommand ( SqlConnection connection, System.Guid relationshipUid ) : SqlCommand

We need to delete all descriptors and metadata associated with this relationship. There are a few key points to know about this operation - 1. We don't need ANY of the connected descriptors because otherwise they would be orphaned and would not link the associated nodes to anything. 2. We don't need ANY of the related metadata. In the scenario where metadata may have both a node and relationship ID it needs to be remembered that the metadata doesn't relate to just the node but relates to the node from the perspective of this relationship. If the relationship doesn't exist then the metadata is meaningless.

Method Details

DeleteRelationship() public méthode

public DeleteRelationship ( MapParameters sessionMapParameters ) : System
sessionMapParameters MapParameters
Résultat System

ExecuteTransaction() public méthode

public ExecuteTransaction ( IDbConnectionAbstraction connectionAbstraction, MapTransactionWrapper transactionWrapper, MapResponse &response ) : void
connectionAbstraction IDbConnectionAbstraction
transactionWrapper MapTransactionWrapper
response MapResponse
Résultat void

SelectDeleteRelationshipDescriptorsMetadataCommand() protected méthode

We need to delete all descriptors and metadata associated with this relationship. There are a few key points to know about this operation - 1. We don't need ANY of the connected descriptors because otherwise they would be orphaned and would not link the associated nodes to anything. 2. We don't need ANY of the related metadata. In the scenario where metadata may have both a node and relationship ID it needs to be remembered that the metadata doesn't relate to just the node but relates to the node from the perspective of this relationship. If the relationship doesn't exist then the metadata is meaningless.
protected SelectDeleteRelationshipDescriptorsMetadataCommand ( SqlConnection connection, System.Guid relationshipUid ) : SqlCommand
connection System.Data.SqlClient.SqlConnection
relationshipUid System.Guid
Résultat System.Data.SqlClient.SqlCommand