C# Класс TransactionalNodeService.Common.TransactionOperations.DeleteRelationship

Наследование: ITransactionOperation
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DeleteRelationship ( MapParameters sessionMapParameters ) : System
ExecuteTransaction ( IDbConnectionAbstraction connectionAbstraction, MapTransactionWrapper transactionWrapper, MapResponse &response ) : void

Защищенные методы

Метод Описание
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.

Описание методов

DeleteRelationship() публичный Метод

public DeleteRelationship ( MapParameters sessionMapParameters ) : System
sessionMapParameters MapParameters
Результат System

ExecuteTransaction() публичный Метод

public ExecuteTransaction ( IDbConnectionAbstraction connectionAbstraction, MapTransactionWrapper transactionWrapper, MapResponse &response ) : void
connectionAbstraction IDbConnectionAbstraction
transactionWrapper MapTransactionWrapper
response MapResponse
Результат void

SelectDeleteRelationshipDescriptorsMetadataCommand() защищенный Метод

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
Результат System.Data.SqlClient.SqlCommand