Neo4j c# toInteger 密码
Neo4j c# toInteger cypher
我有一个数据库,用于存储客户购买的门票。它存储每个关系中售出的门票数量,我需要显示每个关系中按数量排序的事件。问题是所述数量存储为整数,研究我发现 toInteger()
函数将字符串转换为整数然后我得到有序列表。但是当我尝试在我的 C# 应用程序中实现所述密码时,我找不到使用 toInteger()
.
的方法
Neo4j Cypher(正常工作)
MATCH(Cliente)-[r:Compro]->(b) return b.nombreEvento order by toInteger(r.cantidad) desc limit 5
C# 密码尝试
graphClient.Cypher
.Match("(Cliente) -[r: Compro]->(b)")
.Return(b => b.As<Cine>().nombreEvento)
.OrderByDescending("r.cantidad")
.Limit(5)
.Results.ToList();
我正在为 C# 使用 Neo4jClient 包。
有谁知道上述功能是否可以在 Neo4jClient 中使用?或者帮我指出正确的方向。
只需在 .OrderByDescending()
中添加 toInteger()
函数,如字符串。
例如:
order by toInteger(r.cantidad) desc
会变成:
.OrderByDescending("toInteger(r.cantidad)")
我有一个数据库,用于存储客户购买的门票。它存储每个关系中售出的门票数量,我需要显示每个关系中按数量排序的事件。问题是所述数量存储为整数,研究我发现 toInteger()
函数将字符串转换为整数然后我得到有序列表。但是当我尝试在我的 C# 应用程序中实现所述密码时,我找不到使用 toInteger()
.
Neo4j Cypher(正常工作)
MATCH(Cliente)-[r:Compro]->(b) return b.nombreEvento order by toInteger(r.cantidad) desc limit 5
C# 密码尝试
graphClient.Cypher
.Match("(Cliente) -[r: Compro]->(b)")
.Return(b => b.As<Cine>().nombreEvento)
.OrderByDescending("r.cantidad")
.Limit(5)
.Results.ToList();
我正在为 C# 使用 Neo4jClient 包。
有谁知道上述功能是否可以在 Neo4jClient 中使用?或者帮我指出正确的方向。
只需在 .OrderByDescending()
中添加 toInteger()
函数,如字符串。
例如:
order by toInteger(r.cantidad) desc
会变成:
.OrderByDescending("toInteger(r.cantidad)")