Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public AddRelationshipTransactionOperation(SqlConnection connection, TransactionTokenFactory factory)
     : base(connection, factory)
 {
     ResultTokens.Add(TokenFactory.CreateToken());
 }
Esempio n. 4
0
 public AddNodeTransactionOperation(SqlConnection connection, TransactionTokenFactory factory)
     : base(connection, factory)
 {
     NewNodeToken = TokenFactory.CreateToken();
     ResultTokens.Add(NewNodeToken);
 }