【发布时间】:2010-11-17 14:20:56
【问题描述】:
为什么我在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;
我们可以对SelectSingleItem() 使用快速查询吗?我试图避免get folder contents and loop through each item until I find the target solution. 建议?
【问题讨论】:
-
有人知道如何转义文本字段中使用的特殊字符,例如内容项描述中的撇号吗? stackoverflow.com/questions/16847831/…
标签: sitecore