Subsonic 3 - SimpleRepository

北慕城南 提交于 2019-11-28 09:27:00

you need to get linq to populate it,
using something like
var query = from product in repo.All(Product)
join categoryItem in repo.All(Category)
on product.CategoryId equals categoryItem.Id
select new {
ID = product.ID,
name = product.name,
description = product.description,
categoryId= product.CategoryId
category = categoryItem
};

This article appears to address "eager loading" with subsonic: http://tryingthisagain.com/2007/12/03/hijacking-the-subsonic-relationship-load-process/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!