0

我有一个如下所示的密码查询:

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

如果名称是 Mike 并且职业是开发人员,这将返回与根节点相关的所有节点。

现在如何在 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 回答