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);
但它在另一个系统中运行良好。如何修复此错误?