0

次のような暗号クエリがあります。

start n = node:node_auto_index(Department = "IT") match (n)-->(x) Where x.Name = "Mike" And x.Occupation = "Developer" return x;

Name が Mike で Occupation が developer の場合、ルート ノードに関連するすべてのノードが返されます。

C# で "And x.Occupation" を実行するにはどうすればよいですか?

var query = this.clientConnection
      .Cypher
      .Start(new
      {
         n = Node.ByIndexLookup("node_auto_index", "Department", "IT")
      })
      .Match("n-->x")
      .Where((Employee x) => x.Name == "Version" //"AND" x.Occupation = "Developer)
      .Return<Node<IQS_Content_Manager.Models.Nodes.Version>>("(x)")
      .Results;

queryResult = query.ToList();
4

1 に答える 1

2
.Where((Employee x) => x.Name == "Version")
.AndWhere((Employee x) => x.Occupation == "Developer)
于 2013-07-16T12:08:44.770 に答える