相关疑难解决方法(0)

Sitecore快速查询提供解析异常

为什么我使用下面的代码收到此错误 ParseException: End of string expected at position 4.

这是代码:错误在第3行.

var db = Sitecore.Configuration.Factory.GetDatabase("web");
string query = @"fast:/sitecore/content/foodservice/home/Products/3492-5326/3518-7";
Item item = db.SelectSingleItem(query);
return item;
Run Code Online (Sandbox Code Playgroud)

我们可以使用快速查询SelectSingleItem()吗?我试图避免这些get folder contents and loop through each item until I find the target solution.建议?

sitecore

16
推荐指数
2
解决办法
7431
查看次数

标签 统计

sitecore ×1