示例#1
0
 public IEnumerable Find()
 {
     Client.Connect();
     return(Client.WithAnnotations().Cypher.Match(p =>
                                                  p.Pattern <Team, WorkdsInRelationship, Company>("t", "r", "c", RelationshipDirection.Outgoing)
                                                  .Constrain((t) => t.Name == "engineering"))
            .Return((t, r, c) => new WorkdsInRelationship
     {
         Team = t.As <Team>(),
         Company = c.As <Company>()
     }).Results);
 }