0
例如我想从数据库得到一样的数据:如何使用linq的未链接结果?
using (ExplorerDataContext context = new ExplorerDataContext())
{
ObjectQuery<Store> stores = context.Store;
ObjectQuery<ProductPrice> productPrice = context.ProductPrice;
ObjectQuery<Product> products = context.Product;
res =
from store in stores
join pp in productPrice
on store equals pp.Store
join prod in products
on pp.Product equals prod
select store;
}
此代码后的结果,因为上下文不存在,我越不能转移到一些其他方法。我怎样才能得到独立于上下文的未链接结果? 谢谢
哦,它的工作原理!非常感谢 – mimic 2010-04-06 00:42:53