2013-07-16 3 views
0

У меня есть Cypher запрос, который выглядит следующим образом:Использования «И» для шифра в Neo4jClient

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

Это возвращает все узлы, связанные с корневым узлом, если имя является Майком и занятия разработчиком.

Теперь, как мне сделать «И x.Occupation» в C#?

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(); 

ответ

2
.Where((Employee x) => x.Name == "Version") 
.AndWhere((Employee x) => x.Occupation == "Developer)