How to join 3 tables with lambda expression?

后端 未结 4 1992
借酒劲吻你
借酒劲吻你 2021-01-31 11:47

I have a simple LINQ lambda join query but I want to add a 3rd join with a where clause. How do I go about doing that?

Here\'s my single join query:

var         


        
4条回答
  •  难免孤独
    2021-01-31 12:00

    Try something like this...

    var myList = ({from a in Companies 
    join b in Sectors on a.Sector_code equals b.Sector_code
    join c in Distribution on b.distribution_code equals a.distribution_code
    select new {...});
    

提交回复
热议问题