Beispiel #1
0
 private void CreateIVRMessage(IVRMessage messageNode)
 {
     messageNode.id = Guid.NewGuid();
     //var messageNode = new IVRMessage { id = message.id, message = message.message };
     _neo4jClient.Cypher
     .Merge("(message:MESSAGE {id: {id}, message:{message} })")
     .OnCreate()
     .Set("message = {messageNode}")
     .WithParams(new
     {
         id      = messageNode.id,
         message = messageNode.message,
         messageNode
     }).ExecuteWithoutResults();
 }
Beispiel #2
0
 private void CreateIVRWelcomeMessage(IVRMessage messageNode)
 {
     _neo4jClient.Connect();
     messageNode.id = Guid.NewGuid();
     //var messageNode = new IVRMessage { id=Guid.NewGuid(), message = message.message };
     _neo4jClient.Cypher
     .Merge("(message:WELCOME {message: {message} })")
     .OnCreate()
     .Set("message = {messageNode}")
     .WithParams(new
     {
         id      = messageNode.id,
         message = messageNode.message,
         messageNode
     }).ExecuteWithoutResults();
 }