C# 클래스 TransactionalNodeService.Common.TransactionOperations.DeleteRelationship

상속: ITransactionOperation
파일 보기 프로젝트 열기: chris-tomich/Glyma 1 사용 예제들

공개 메소드들

메소드 설명
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