配列のように、コンマで区切られたテキスト値の文字列があると仮定します。
var excludelist ="apples,oranges,grapes,pears";
除外リストの値は、データベース内のテーブルへのクエリから取得される場合があります。
Fruitという名前のフィールドに除外リストの項目が含まれている行を除くすべての行を返すクエリを想定します。
var qry = from s in context.Groceries.Where(s => s.Fruit(here is where we need to exclude the items??) join u in context.Users on s.Owner equals u.User_ID
誰かがSQL回答へのサンプルリンクを提供できますか?