2013-07-16 2 views
0

에서 사이퍼를 위해 나는이처럼 보이는 사이퍼 쿼리가 : 이름은 마이크이고 직업 개발자 인 경우"그리고"Neo4jClient

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

이 루트 노드에 관련된 모든 노드를 반환합니다.

이제 C#에서 "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(); 

답변

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