c# - select width entity framework and linq -


There are 2 table missions in mission and mission-related days 1 .. n

The mission is to select all those mission days with a specialty called "directed" = true

. I:

  db.TDP_Missioni.Include ("TDP_MissioniDestinazioni"). = & Gt; P.TDP_MissioniDestinazioni.visible == true)  

But there is an error in fact from p.TDP_MissioniDestinazioni I do not see the attributes of the table. I think that's because it's relationship 1..n.

Thank you

Since relationship 1: N, TDPIMMission desistenzione to Missionad's < Em> archive Try this: db.TDP_Missioni.Include ("TDP_MissioniDestinazioni"). Where (P => p.TDP_MissioniDestinazioni.All (d = & gt; d.visible))


Comments