I currently join like the following for a left outer join:
join temp_locations in db.Locations
on new { city_id = ((int?)c.city_id), state_id = ((int?)s.state_id), country_id = ((int?)country.country_id) }
equals new { temp_locations.city_id, temp_locations.state_id, temp_locations.country_id } into Temp_locations
from l in Temp_locations.DefaultIfEmpty()
But that is creating a left outer join with multiple AND commands. I need those to be OR. SQL example:
Left Outer Join
Locations l on l.city_id = c.city_id
or l.state_id = s.state_id
or l.country_id = country.country_id
How can I accomplish this?
Edit 7/11/18
I was not able to get this to work. The cross join answer did not work as records were appearing and disappearing that were not supposed to. I ended up making a stored procedure and doing it all in there. I'm still open to how to do this in entity framework if anyone knows.