你好,我想在一行查询中使用两个参数参见示例查询,
client.cypher.Match("(p:Person)")
.Where("NOT (p)-[:KHOWS]-(:Person {Id:{param}})-[:HAS_PROFILE]-(:Profile {Id:{param2}})")现在,我如何在一行中为两个参数使用WithParam()?
发布于 2018-08-14 04:45:19
您可以调用.WithParam() 2x,如下所示:
.WithParam("Param1", xx)
.WithParam("Param2", yy)或者使用.WithParams
.WithParams(new {
param1 = xx,
param2 = yy
})两者之间没有性能差异。
https://stackoverflow.com/questions/51818475
复制相似问题