EF 联合查询

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaomifengmaidi1/article/details/82503638

其实不用include,

 var productList = productCategoryMappingRepository.FindQueryable(a => a.ProductCategoryID == CategoryID).Select(b => b.Product).ToList();

猜你喜欢

转载自blog.csdn.net/xiaomifengmaidi1/article/details/82503638
EF