I am trying to join 3 table in LINQ.
var fromCities = from c in cityRepository.Cities
join r in routeRepository.Routes on c.Id equals r.FromCityId
join cr in rentDetailRepository.CarRentDetails on cr.CityId equals c.Id
select c;
I am getting that cr and c do not exist in the second join statement?
Could somebody help?
Change the order in the last join:
join clause (C# Reference)