Пример #1
0
        public NodeReference <Command> InsertNode(Command myCommand)
        {
            var          myNodeReference = client.Create(myCommand);
            PhraseAccess pa         = new PhraseAccess();
            var          phrasenode = pa.InsertNode(pa.GetObjectClass(myCommand.phrase));

            client.CreateRelationship((NodeReference <Command>)myNodeReference, new PhraseCommandRelationship(phrasenode));
            return(myNodeReference);
        }
Пример #2
0
 public NodeReference<Word> InsertNode(Word myWord)
 {
    
     var myNodeReference = client.Create(myWord);
     PhraseAccess pa = new PhraseAccess();
     var phrasenode = pa.InsertNode(pa.GetObjectClass(myWord.word));
     
     return myNodeReference;
 }