假設(shè)我有 2 個相關(guān)表: Candidates - 有通知列表 所以問題是:Candidates.SelectMany(c=>c.Notifications.Where(...).ToList())或類似的東西var candIds = ...//int array of candidates that i needNotifications.Where(n=>candId.Contains(n.CandidateId) && ...).ToList()哪里性能更好?那些表達(dá)是一樣的嗎?
Linq iqueryable 什么更快:直接訪問表還是通過對象層次結(jié)構(gòu)?
慕無忌1623718
2021-06-18 22:09:26