from a in datas
join b in cab on a.ServiceOrderId equals b.ServiceOrderId
join c in sod on a.ServiceOrderId equals c.Id
join d in sum on a.CreateUserId equals d.Id
select new { a,b, c, d};
其中需要查出a的資料,但是帶出b,c,d三個表中一些資料,但是a與b,a與c是一對多關系,所以會查出很多重復的,求解不讓他重復
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/175482.html
標籤:LINQ
下一篇:C#初始化銀海醫保介面的問題
