私がエンティティでMember
あり、含めたくない名前のリストであるとします。
var excludeNames = new [] { "A","B","C","D"};
var members = db.Members.Except(excludeNames);
また
var excludeNames = new[]{ "A","B","C","D"};
var Members = db.Members.Where(m=> excludeNames.Where(xcl => xcl != m.Name));
これらはどれも機能していません。私もこれを試しました:
var excludeNames = new[] { "A","B","C","D"};
var members = from m in db.Members
from xcl in excludeNames
where m.Name != xcl
select m;