コード例 #1
0
        protected async Task <long> MergeNode(MergeNodeCommand mergeNodeCommand)
        {
            List <long> result = await _graphDatabase.RunWriteQuery(mergeNodeCommand,
                                                                    r => r.Values.First().Value.As <long>());

            return(result.First());
        }
コード例 #2
0
 public MergeNodeCommandTests()
 {
     MergeNodeCommand = new MergeNodeCommand
     {
         IdPropertyName = $"{nameof(MergeNodeCommand.IdPropertyName)}",
         NodeLabels     = { "NodeLabel" },
         Properties     = new Dictionary <string, object>()
     };
 }