. , "", Include ( "" ).
, , "" .
:
var myQuery = from product in _repository.Query()
join prodLocalization in _repoProductLocalization.Query()
on product.Id equals prodLocalization.ProductId
select new
{
Product = product,
Customer = product.Customer,
Localization = prodLocalization
};
var prods = myQuery.ToList();
:
var customerProds = prods.Select(i => {
var item = new { i.Product, i.Localization };
item.Product.Customer = i.Customer;
return item;
})
.ToList();