我有許多由實體框架創建的關係。在有許多關係的表中創建LINQ
我嘗試從具有多種關係的表中檢索數據。
這裏的方案:
這裏是我的Linq創建:
var inspArchive = context
.Set<InspectionArchive>()
.Where(x => x.CustomerId == clientId && x.InspectionDomainId == domainId)
.Select(x=>x);
的LINQ從inspectionArchives表中獲取記錄當條件滿足。
在上面的LINQ中,我需要再包含一個條件,考慮InspectionAuthoreties表的Id。
如何更改上面的LINQ以考慮InspectionAuthoreties表的Id。
作爲其多對多所以具體是你想要的? 「檢驗存檔」後 –