public override void ExecuteOperation() { Guid newRelationshipUid = Guid.Empty; CreateRelationship(out newRelationshipUid).ExecuteNonQuery(); foreach (KeyValuePair <SoapDescriptorType, TransactionToken> node in Nodes) { Guid newDescriptorUid = Guid.Empty; CreateDescriptor(out newDescriptorUid, node.Key, node.Value, newRelationshipUid).ExecuteNonQuery(); } ResultTokens.First().DelayedExecutionMapObjectId = newRelationshipUid; }
public override void ExecuteOperation() { if (!ExecuteDomainExistsQuery()) { CreateDomainCommand().ExecuteNonQuery(); } Guid newNodeId = Guid.Empty; CreateNodeCommand(out newNodeId).ExecuteNonQuery(); TransactionToken token = TokenFactory.CreateToken(); token.DelayedExecutionMapObjectId = newNodeId; ResultTokens.Add(token); }
public AddRelationshipTransactionOperation(SqlConnection connection, TransactionTokenFactory factory) : base(connection, factory) { ResultTokens.Add(TokenFactory.CreateToken()); }
public AddNodeTransactionOperation(SqlConnection connection, TransactionTokenFactory factory) : base(connection, factory) { NewNodeToken = TokenFactory.CreateToken(); ResultTokens.Add(NewNodeToken); }