Sun*_*her 5 sitecore glass-mapper sitecore8.2
我正在使用sitecore 8.2和glassmapper 4.3.
我可以使用后备项目Isitecorecontext.GetItem<T>(path),但当我尝试使用如下的sitecore查询读取项目时
public partial interface T
{
[SitecoreQuery("./*[@@templatename='TemplateName']", InferType =true, IsLazy = true, IsRelative = true)]
IMultiSiteContext ConfigurationRoot { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
ConfigurationRoot是在该T的部分接口中创建的额外属性
| 归档时间: |
|
| 查看次数: |
109 次 |
| 最近记录: |