Neo4jclient这个类在哪里 - Neo4jDataRepository?

时间:2015-07-31 13:55:15

标签: c# neo4j neo4jclient

我正在尝试使用Neo4jclient为c#批量插入关系到neo4j数据库。我用户dcinzona找到了此代码。我正在查看最新的源代码,无法在任何地方找到此类Neo4jDataRespository。这是由该用户创建的自定义类还是我遗漏了什么?

string merge1 = string.Format("c:{0} {{{1}:row.{2}}}", IDFieldLeft.Replace("Id", ""), IDFieldLeft, IDFieldLeft);
    string merge2 = string.Format("a:{0} {{{1}:row.{2}}}", IDFieldRight.Replace("Id", ""), IDFieldRight, IDFieldRight);
    string merge3 = string.Format("(c)-[r:{0} {{row}}]->(a)", entityName);
    foreach (var list in Neo4jDataRepository.Batch(relationshipMatrix, 1000))
    {
        var query = client
                    .Cypher
                    .WithParam("coll", list.ToList())
                    .ForEach("(row in {coll})")//manually create json array of list objects
                    .Merge(merge1)
                    .Merge(merge2)
                    .Merge(merge3);
        query.ExecuteWithoutResults();
    }

1 个答案:

答案 0 :(得分:2)

这是由该用户创建的自定义类,它不属于Neo4jClient

我不确定他们做了什么,而且我没有看到它在其他任何地方被引用,而是我们害怕:/