0
我的用戶neo4jclient查詢數據,但我不如何使用類似條款相同的SQL,現在它只是用得到具體怎麼樣子句中使用的neo4jclient在windowform C#
這裏是完整的代碼
var client = new GraphClient(new Uri("http://localhost:7474/db/data"), "username", "password");
client.Connect();
var apps = client.Cypher
.Match("(a:App)")
.Where("a.Name =~ {nameParam}")
.WithParam("nameParam", string.Format("'.*{0}.*'", nameapps))
.Return(a => a.As<APP>())
.Results;
foreach (var application in apps)
{
Console.WriteLine("APPID:{0} - AppName:{1}", application.ID, application.Name);
}
當我在我的代碼替換它顯示在$錯誤「 * {nameapps}」。*) – kanabut
這是一個錯字時,'「'是放錯了地方,另外,它使用C#6,所以你可能需要使用'string.Format'版本代替 –
我嘗試關注你的代碼,但它不工作,對不起,我是新手neo4jclient T_T – kanabut