在哪里重新加载集合属性 [英] where is reloading a collection property
本文介绍了在哪里重新加载集合属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何重新加载像
db.Entry(customer).Collection(c => c.Orders).Reload();
有选项吗?
Zeeshan Hirani Apress的实体框架4.0食谱
http://weblogs.asp.net/zeeshanhirani
解决方案
嗨Zeeshan,
此功能在CTP5中不可用,不太可能出现在第一个RTM中。这是我们计划在将来支持的东西。
不幸的是,你现在需要下拉到ObjectContext。
~Rowan
how do i reload a collection like
db.Entry(customer).Collection(c => c.Orders).Reload();
is there an option?
Zeeshan Hirani Entity Framework 4.0 Recipes by Apress
http://weblogs.asp.net/zeeshanhirani
解决方案
Hi Zeeshan,
This functionality isn't available in CTP5 and is unlikely to be in the first RTM. It is something we plan to support in the future though.
Unfortunately you need to drop down to ObjectContext for the moment.
~Rowan
这篇关于在哪里重新加载集合属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文