List<int> execFavoriteUsers =
(from exec in context.ExecutiveFavorites
where exec.ExecutiveUserID == model.UserID
select exec.ProfileUserID)
.ToList();
query = (from cast in query
where execFavoriteUsers.Contains(cast.UserID) == false
select cast);
但在Anoter系統工作正常。如何解決這個錯誤?不能 'System.Collections.Generic.List <int?>' 隱式轉換爲 'System.Collections.Generic.List <int>'
你試過'名單 execFavoriteUsers = ...'? –