How to use unlinked result of linq?
- by user46503
Hello,
for example I'm trying to get the data from database like:
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;
}
After this code I cannot transfer the result to some another method because the context doesn't exist more. How could I get the unlinked result independent on the context?
Thanks