LINQ to SQL Join issues

前端 未结 3 553
迷失自我
迷失自我 2021-01-05 09:06

I\'m trying to use the following LINQ to SQL in my code:

  (from s in dc.Accounts 
  join purchases in dc.Transactions on s.AccID equals purchases.Account in         


        
3条回答
  •  悲哀的现实
    2021-01-05 10:01

    Try to specify the same join key names e.g.

    join pop in dc.POPTransactions on new { Key1 = s.ID, Key2 = syncNo } equals new {Key1 = pop.AccountID, Key2 = pop.SyncNo }
    

提交回复
热议问题