Код: Выделить всё
IQueryable users =
from u in Entities.users.
Include("orders_assigned").Include("orders_assigned.order_line_items")
from o in u.orders_assigned
where
o.status.Equals((int)OrderStatus.ReadyForInvestigation) &&
o.assigned_to_user_id != 0
from oli in o.order_line_items
where
oli.line_item_type.Equals("service") ||
oli.line_item_type.Equals("package_service")
select u;
Я раньше использовал Include без проблем, не знаю, что На этот раз я поступаю неправильно.
Подробнее здесь: https://stackoverflow.com/questions/726 ... -in-ef-4-0
Мобильная версия