Does anyone any idea how can we use where not in() statement with lambda?
this is where id in() statement
public List<abc> GetList(List<string> ID)
{
return db.abcs.Where(a => ID.Contains(a.id)).ToList<abc>();
}
I’d like to find how cloud it be opposite. “where id not in…”
Simply add a not (
!) operator: