public partial interface ICategoryFolderEntity { ////// Gets list of category in this folder /// [SitecoreChildren()] IEnumerable CategoryList { get; } } public partial class CategoryFolderEntity : ICategoryFolderEntity { ////// Gets list of category in this folder /// [SitecoreChildren] public virtual IEnumerableCategoryList { get; set; } }
No need of
[SitecoreChildren(IsLazy = false)]
Just
[SitecoreChildren]
And virtual IEnumerableRemember VirtualCategoryList
Reference:
https://sitecore.stackexchange.com/questions/16530/after-upgrading-to-glass-mapper-5-unable-to-globally-enable-lazy-loading
No comments :
Post a Comment