效果如下:
查找某个人关联公司
/// <summary> /// 通过连接关系 查询指定节点信息 /// </summary> /// <returns></returns> [Fact] public async Task SelectNodeByRelationShipTest() { string relationShipName = "公司关联"; string condition = "UserInfo.Name='张小玉'"; var tupleList = await neo4jRepository.SelectNodeByRelationShoip<UserInfo,Company>("UserInfo", "Company",relationShipName, condition); Assert.True(tupleList.Item1.Count>0); Assert.True(tupleList.Item2.Count>0); }效果如下: