Issue with Linq Join (subsonic)
I have this slice of code IQueryable<Dealer> dealers = from dealer in Dealers join address in AddressesUS on dealer.DealerId equals address.OwnerId where dealer.Country == country && address.Owner == (int)Contact.OwnerType.Dealer select new Dealer() { DealerId = dealer.DealerId, DealerName = dealer.DealerName, Country = dealer.Country, Email = dealer.Email, Contact = dealer.Contact, Url = dealer.Url, IsActive = dealer.IsActive, IsWholesale = dealer.IsWholesale, Address = address == null ? null : address }; When I execute it (by calling ToArray or whatever), I get this error: System