Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以让存储过程返回现有实体的集合。在这种情况下如何加入/包含其他实体?这甚至可能吗?
这些方面的东西就足够了吗?
var joinResult = (from product in dbContext.sp_GetProducts() join cat in dbContext.ProductCategory on product.catID equals cat.ID select new { product = product, category = cat }).ToList();
或者,您可以在存储过程中进行加入。