17,739
社区成员
发帖
与我相关
我的任务
分享
using (var dbContext = new StoreDBEntities())
{
var results = dbContext.GetAllCategorisAndProducts();
//Get first enumerate result set
categProd.Categories.AddRange(results);
//Get second result set
var products = results.GetNextResult<Product_SprocResult>();
categProd.Products.AddRange(products);
//Return all result sets
return categProd;
}