I got two lists that I need to join to set a value between them.
The first list is companytaxesnumber and the second is ordertaxes.
Both of them got a TaxId which is used to join them.
Here the code about that :
destination.OrderTaxes = destination.OrderTaxes.
            Join(src.companytaxesnumber, vModel => vModel.TaxId, source => source.TaxId, (dest, source) =>
            {
                  dest.LegalNumber = source.LegalNumber; return dest;
            }).ToList();
My problem is if companytaxesnumber have less data then ordertaxes (for any reason), the join operator will return a result
with the count of companytaxesnumber and will lost the other data of ordertaxes that it has not been able to join.
Did you know how can I make sure I got the complete ordertaxes list even if some data has not been join with companytaxesnumber?
 
    